Author Topic: WaveForm data  (Read 346 times)

Dimitriy

  • Posts: 1
WaveForm data
« on: 26 Sep '18 - 13:08 »
Hello! Thank you for the great library!
Here is my question: I want to generate dat-file using bass.net (C#) to draw a waveform in a browser. I need to get data this way:
Byte _offset     Type         Value
20                     int8_t       Minimum sample value, index 0
21                     int8_t       Maximum sample value, index 0
22                     int8_t       Minimum sample value, index 1
23                     int8_t       Maximum sample value, index 1
etc   ...   ...
(according to https://github.com/bbc/audiowaveform/blob/master/doc/DataFormat.md)
I try BASS_ChannelGetData (I have looked at a spectrum.c example), but can't get what I need.
Can anyone point me into the right direction?

Udpate: The problem is solved. Didn't scale it properly
« Last Edit: 1 Oct '18 - 08:23 by Dimitriy »