dart_alsa 0.0.3 copy "dart_alsa: ^0.0.3" to clipboard
dart_alsa: ^0.0.3 copied to clipboard

Dart FFI Binding to the ALSA sound library

Dart FFI Binding to the ALSA sound library. #

Regenerating the Dart ffi binding code #

Settings for ffigen are in pubspec.yaml, to regenerate the binding code run:

dart run ffigen

Testing #

check wav file properties: mediainfo filename.wav

ref: https://mediaarea.net/en/MediaInfo

run example: dart example/playsound.dart 44100 2 < refs/test1.wav

Acknowledgements #

My thanks to Morten Boye Mortensen whose use of ALSA via ffigen for Linux support in the Flutter Midi Command Dart package served as the inspiration for this package.

Initial playback implementation based on sample code by Alessandro Ghedini.

1
likes
50
pub points
0%
popularity

Publisher

verified publishermanichord.com

Dart FFI Binding to the ALSA sound library

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

ffi, tuple

More

Packages that depend on dart_alsa