ryanheise / just_waveform

A Flutter plugin to extract waveform data from an audio file suitable for visual rendering.
MIT License
86 stars 17 forks source link

Is there a way to draw waveform from Uint8List directly from buffer ? #16

Closed purelog1c closed 2 years ago

ryanheise commented 2 years ago

Is this a question on Dart's Uint8List/buffer library rather than on the capabilities of just_waveform itself?

hey-nicolasklein commented 2 years ago

One could just do:

final audioFile =
          File(p.join((await getTemporaryDirectory()).path, 'waveform.m4a'));

await audioFile.writeAsBytes((widget.file));

where widget.file is a uInt8List.

ryanheise commented 2 years ago

I think I can close this issue since @purelog1c appears to no longer be interested in the issue. (Although the answer should be clear by viewing the code in the example directory).