flutter_pcm_sound_spm 1.1.0
flutter_pcm_sound_spm: ^1.1.0 copied to clipboard
Send real-time PCM audio (16-bit integer) to the device speakers on Android, iOS, macOS and web. Swift Package Manager compatible fork of flutter_pcm_sound.
1.1.0 #
- Web support. New platform implementation backed by the Web Audio API,
answering the same method channel as the native plugins — the Dart API is
identical on web, so nothing in your code changes.
- Feeds are scheduled on the
AudioContextclock so consecutive buffers play gaplessly; "remaining frames" is how far that schedule runs ahead of the clock. - The feed callback keeps its contract: one low-buffer event and one
drained-to-zero event per
feed(). - Written with
package:webanddart:js_interop, so it compiles to WebAssembly as well as JavaScript. - Browsers block audio until the page has been interacted with; the context is resumed on each feed, so playback begins at the first user gesture.
- Feeds are scheduled on the
- Added an example app (plays a C major scale) that runs on all four platforms.
PcmArrayInt16's[]and[]=now declare their return types.- Shortened the package description to fit pub.dev's 180-character limit.
- Minimum SDK is now Dart 3.3 / Flutter 3.19, which
package:webrequires.
1.0.0 #
First release, forked from flutter_pcm_sound 3.3.3.
- Swift Package Manager support on iOS and macOS. CocoaPods still works, so a project can move either way.
- Android compiles against Flutter's configured SDK instead of a pinned 33
(the fix on upstream's
masterthat was never released). - Android
minSdk21 and Java 17. - Android package renamed to
com.sadiqueiqbal.flutter_pcm_sound_spmso it cannot collide with the original. - Dart API unchanged from 3.3.3.