How do I write a program that displays the sound waves of a MP3 file?
I'm guessing it's not as simple as reading each byte, converting it .toString() then to integer and plotting the returned integer(value)?
Printable View
How do I write a program that displays the sound waves of a MP3 file?
I'm guessing it's not as simple as reading each byte, converting it .toString() then to integer and plotting the returned integer(value)?
You have to decode the MP3 first. Afterwards you can read each value and plot
So I think LAME can decode MP3 to WAV.
So back to my original question except replace MP3 with WAV.
Quote:
Originally Posted by noahssite
You can't read byte by byte, because the wave proberbly is 16bit (thus 2 byte) and stereo. You have to read the header for this information. Afterwards you can plot the graph