bbc / audiowaveform

C++ program to generate waveform data and render waveform images from audio files
https://waveform.prototyping.bbc.co.uk
GNU General Public License v3.0
1.83k stars 240 forks source link

Running audiowaveform in flutter app using Dart ffi #193

Open eamasya19 opened 6 months ago

eamasya19 commented 6 months ago

Hello, this is my first time developing a project and creating an issue. Pardon me if I'm not clear on some subjects.

I want to create waveforms in an audio related flutter app and I saw that some C/C++ libraries can be run on dart directly using ffi package. I was wondering do you have any idea or example for such an implementation so that audiowaveform's functionality can be accessed from a flutter app directly?

chrisn commented 6 months ago

audiowaveform isn't a library, so instead of ffi you'd need to use https://api.flutter.dev/flutter/dart-io/Process-class.html to run the executable.