|
-
Jul 9th, 2010, 08:20 PM
#1
Thread Starter
Frenzied Member
Sound Waves MP3
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)?
-
Jul 12th, 2010, 03:20 AM
#2
Re: Sound Waves MP3
You have to decode the MP3 first. Afterwards you can read each value and plot
-
Jul 12th, 2010, 11:53 AM
#3
Thread Starter
Frenzied Member
Re: Sound Waves MP3
So I think LAME can decode MP3 to WAV.
So back to my original question except replace MP3 with WAV.
 Originally Posted by noahssite
I'm guessing it's not as simple as reading each byte, converting it .toString() then to integer and plotting the returned integer(value)?
-
Jul 12th, 2010, 02:12 PM
#4
Re: Sound Waves MP3
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|