Skip to main content

flutter_pcm_sound_spm 1.1.0 copy "flutter_pcm_sound_spm: ^1.1.0" to clipboard
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 AudioContext clock 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:web and dart: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.
  • 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:web requires.

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 master that was never released).
  • Android minSdk 21 and Java 17.
  • Android package renamed to com.sadiqueiqbal.flutter_pcm_sound_spm so it cannot collide with the original.
  • Dart API unchanged from 3.3.3.
1
likes
160
points
393
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

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.

Repository (GitHub)
View/report issues

Topics

#audio #pcm #sound

License

Unlicense (license)

Dependencies

flutter, flutter_web_plugins, web

More

Packages that depend on flutter_pcm_sound_spm

Packages that implement flutter_pcm_sound_spm