-
April 24th, 2004, 01:38 AM
#1
how to play the mp3 data in the buffer?
My program need to receive the mp3 data in the buffer and play it immeditely,how should i do?
I don't want to write the buffer to a file and then play it because it may have a long time
-
April 24th, 2004, 02:24 AM
#2
You need a librabry that does this for you. For example BASS, Fmod, DirectShow...
-
April 24th, 2004, 08:28 AM
#3
I would go with FMOD. It is very good and easy to use.
-
April 24th, 2004, 02:35 PM
#4
Alright...It's going to be harder than it seems.
Go get LAME...I thinks it's mp3dev.org or something...
Then, call a function to decode the buffer you wanty to play. If you're going to play it from a file, use mmio APIs (which I can guide you through if you are doingg so) Call the waveOut functions and play the decoded buffer. Do this in a loop until the song is over!
(Alright, that wasn't a very good explaination now was it...)
Catch me on MSN: dannyjoumaa@.NOSPAM.cox.net
or AIM: NessAndAHalf
Need help with anything related to audio programming? I can help!
-
April 26th, 2004, 01:01 AM
#5
Thank all of you
Ness:I think your way will work,and now i am using tha lame to encode the wave to mp3,but i want to try the directshow,thank you very much
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
|