I\'m trying to draw a waveform from a raw audio file. I demuxed/decoded an audio file using FFmpeg and I have those informations: samples buffer, the size of the samples buffer,
There is a nice program audiowaveform from BBC R&D that does what you want, you might consult their sources.