I want to show whole waveform of a mp3 file in my application, and I use Sound::readData of fmod. But it returns empty array.
void *pointer1 = new byte[ 4096 ];
unsigned int length;
system -> createSound( filePath, FMOD_OPENONLY | FMOD_ACCURATETIME, NULL, &sound );
sound-> readData( pointer1, 4096, &length );
does anyone have some source or demo to show whole wavedform of mp3 file in c++?