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?
Printable View
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?
Look up wave buffers in MSDN :)
Alternatively. DirectSound could be used to play a buffer of sound data.
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)
May i ask where you found the info about decoding mp3's? since i'm pretty interested in how it works :)
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...
64bit per channel maybe?
Very very thnx,
Got also any address for decoding info on the frames itself?
Hmm lets say if I did this thread wouldnt be here ;)
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 ;)
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.
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 ;)
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 ;)
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)