reading the amplitude of a frame

Dec 18, 2011 at 2:13 PM


Firstly, I really want to thank Mr Mark for his great effort here.

Now my question, I want to get the amplitude of each mp3 frame as I go through the file to use it in visualizing the mp3 data.

If it's not possible would you recommend other ways to visualize the file by ?

Note: I don't use WPF .  

Dec 18, 2011 at 9:33 PM

You can only visualise MP3 by decoding it to PCM, and then showing waveforms/level meters the same way you do with WAV files (see NAudioDemo for an example).

Dec 19, 2011 at 5:35 AM

when I open Source Code section an error occures but I could get the source code from another site but it uses an eventargs that visualize the data while playing.

maybe that source code wasn't write , so do you have a link for the source code ?

Dec 19, 2011 at 7:55 AM

You can always get the very latest code from here:

And the latest release (1.5) is here:


Dec 19, 2011 at 10:36 AM

Thanks a lot Mr Mark, I downloaded the source code and I'm checking it now

Dec 27, 2011 at 11:56 AM

sorry for disturbing you again but the demo project visualize audio while playing it and it uses an event StreamVolumeEventArgs.

but what I want to do is to visualize the audio file after loading it directly using the data of frames , just like sound editing programs.

Dec 27, 2011 at 2:10 PM

You just open the audio file and read all the data out of it, using the points reported along the way by StreamVolumeEventArgs

Dec 27, 2011 at 2:27 PM

you may have a look on this:

Jan 1, 2012 at 2:08 PM
Edited Jan 2, 2012 at 11:55 AM

thank you Mr Mark and thefiloe, I could finally read the data successfully