Results 1 to 4 of 4

Thread: Sound Waves MP3

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2008
    Posts
    1,754

    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)?

  2. #2
    Frenzied Member Lightning's Avatar
    Join Date
    Oct 2002
    Location
    Eygelshoven
    Posts
    1,611

    Re: Sound Waves MP3

    You have to decode the MP3 first. Afterwards you can read each value and plot
    VB6 & C# (WCF LINQ) mostly


    If you need help with a WPF/WCF question post in the NEW WPF & WCF forum and we will try help the best we can

    My site

    My blog, couding troubles and solutions

    Free online tools

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2008
    Posts
    1,754

    Re: Sound Waves MP3

    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
    I'm guessing it's not as simple as reading each byte, converting it .toString() then to integer and plotting the returned integer(value)?

  4. #4
    Frenzied Member Lightning's Avatar
    Join Date
    Oct 2002
    Location
    Eygelshoven
    Posts
    1,611

    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
    VB6 & C# (WCF LINQ) mostly


    If you need help with a WPF/WCF question post in the NEW WPF & WCF forum and we will try help the best we can

    My site

    My blog, couding troubles and solutions

    Free online tools

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width