Results 1 to 13 of 13

Thread: Sound data in MP3

  1. #1

    Thread Starter
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134

    Sound data in MP3

    What do you do with the sound data you gather from an MP3? I've got the sound data, but the file format refrence doesnt tell you what do do with it afterwards. Any pointers?
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Look up wave buffers in MSDN

    Alternatively. DirectSound could be used to play a buffer of sound data.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  3. #3

    Thread Starter
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Both of those are true but I didnt find Wave Buffers, only the overview of it, and I'm confused now >=(.

    I tried playing it with DSound (8) and I have a problem - byte frames in my MP3 are 388 bytes/frame, and I have no idea how many frames are in a second. (my song is exactly 1:20 and I have upwards of 10 000 frames or so)
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  4. #4
    Frenzied Member Devion's Avatar
    Join Date
    Sep 2000
    Location
    The Netherlands
    Posts
    1,049
    May i ask where you found the info about decoding mp3's? since i'm pretty interested in how it works

  5. #5

    Thread Starter
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Sure I'd be happy to show you - http://www.wotsit.org. Go to the music section and download the mpeg header zip file. Its the good one. Though I think the bitrate chart's a bit screwed up, as with a 128 bit-rate MP3 I got 64 bits. I'm still trying to find out how to play them...
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  6. #6
    Frenzied Member Devion's Avatar
    Join Date
    Sep 2000
    Location
    The Netherlands
    Posts
    1,049
    64bit per channel maybe?

  7. #7
    Frenzied Member Devion's Avatar
    Join Date
    Sep 2000
    Location
    The Netherlands
    Posts
    1,049
    Very very thnx,
    Got also any address for decoding info on the frames itself?

  8. #8

    Thread Starter
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Hmm lets say if I did this thread wouldnt be here
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  9. #9
    Frenzied Member Devion's Avatar
    Join Date
    Sep 2000
    Location
    The Netherlands
    Posts
    1,049
    Hehe, Really?

    Well, I searched around a bit and came to the conclusion that I still have NO clue how to decode the mpeg frame...

    *Help us oh Mp3-God* show us yur source

  10. #10

    Thread Starter
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    I'm trying at the moment to put it in a DSound8 buffer (secondary) and playing it from there. I've come to the conclusion that I need to know how many frames are in a second, then I can see if my method works.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  11. #11

    Thread Starter
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Oh and I was thinking about your 64 bits/channel... I would never have thought about it that way, yes that's the way it works. if you want I can give you some bitshift functions that are very useful in a situation like this
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  12. #12
    Frenzied Member Devion's Avatar
    Join Date
    Sep 2000
    Location
    The Netherlands
    Posts
    1,049
    Mmh.. the frames are still encoded. If you 'decompress' 'm you presumably get a number of frames more and uhh.. well.. *scratches head* AMP(tm) MP3 Plug works great ya know

  13. #13
    Frenzied Member Devion's Avatar
    Join Date
    Sep 2000
    Location
    The Netherlands
    Posts
    1,049
    Using the AMP Lite-OCX at the moment but its a 60day trial. so I'm pretty interested in creating a very simple mp3 playing module.

    So yeah, Bitshift procedures would be very nice..
    (anything else that's useful is greatly appreciated too)

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