dart_alsa 0.0.3 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.