sound_dart 0.0.1
sound_dart: ^0.0.1 copied to clipboard
Sound for Dart and Flutter with the goal of no additional system dependencies. Dart (no Flutter dependency) with native audio from Rust via FFI.
Changelog #
0.0.1 #
- Initial scaffolding.
- Core API:
Sound,SoundSource,Playback, pluggableSoundBackends. - FFI backend that plays WAV via the
sound_cliRust library; Linux playback over ALSA (PipeWire). Web-safe via conditional imports. - WebAudio backend for the browser (selected automatically on web).
- Native decoding of WAV/MP3/OGG-Vorbis/FLAC via the pure-Rust
symphonia(no system dependencies); the browser decodes natively on web. - Per-voice volume (
setVolume,volume:) and looping (setLooping,loop:). - Pause/resume, seek, and
position/durationquery. Sound.playUrl/loadUrlto fetch and play audio over HTTP (all platforms).SoundFadeextension:fade,fadeIn,fadeOutvolume ramps.- CLI example and a web example.