how to draw oscilloscope graph when an import mp3 file....
C / C++ / MFC
3
Posts
3
Posters
0
Views
1
Watching
-
.
-
Well, firstly you would need to decode the MP3 data. No point reinventing the wheel, just use something like LAME[^] Then you need to draw it to the screen somehow. If you are using Windows, I might suggest GDI+[^] The scope is the most basic audio analysis visual to make... all you are essentially doing is displaying the value of the data at each sample, so just draw it like a massive line graph mapping sample number vs. sample value
-
For the plotting part, there's a couple of chart controls on CP. You can also have a look at my sig for one of them that I developed.
Cédric Moonen Software developer
Charting control [v3.0] OpenGL game tutorial in C++