This project has moved and is read-only. For the latest updates, please go here.

reading the amplitude of a frame

Dec 18, 2011 at 3:13 PM

Hello,

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 10: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 6: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 8:55 AM

You can always get the very latest code from here: http://naudio.codeplex.com/SourceControl/list/changesets

And the latest release (1.5) is here: http://naudio.codeplex.com/releases/view/79035

Mark

Dec 19, 2011 at 11:36 AM

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

Dec 27, 2011 at 12:56 PM

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 3: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 3:27 PM

you may have a look on this:http://naudio.codeplex.com/discussions/284190

Jan 1, 2012 at 3:08 PM
Edited Jan 2, 2012 at 12:55 PM

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