Can DirectShow play Mp3 stream?
-
Dear all, DirectSound allows us to play WAV from both file and stream. However, it cannot play Mp3 file. DirectShow is able to play Mp3 file. So how can I play Mp3 from a stream? Thanks in advance.
-
Dear all, DirectSound allows us to play WAV from both file and stream. However, it cannot play Mp3 file. DirectShow is able to play Mp3 file. So how can I play Mp3 from a stream? Thanks in advance.
-
Dear all, DirectSound allows us to play WAV from both file and stream. However, it cannot play Mp3 file. DirectShow is able to play Mp3 file. So how can I play Mp3 from a stream? Thanks in advance.
Exactly what are you trying to accomplish here? For DirectShow the whole Mp3 file isn't loaded into the buffer when you try to play it. If you have some Mp3 data in your application and would like to play this without writing to disk you would probably have to write your own source filter.
-
Dear all, DirectSound allows us to play WAV from both file and stream. However, it cannot play Mp3 file. DirectShow is able to play Mp3 file. So how can I play Mp3 from a stream? Thanks in advance.
if you want to play mp3 you can use MCI functions_**
**_
whitesky
-
Exactly what are you trying to accomplish here? For DirectShow the whole Mp3 file isn't loaded into the buffer when you try to play it. If you have some Mp3 data in your application and would like to play this without writing to disk you would probably have to write your own source filter.
Yes, that is exactly what I needed. I have a buffer in memory and I know for sure it is in Mp3 format. Then I want to play it without saving to disk. Can you tell me more about the filter? Thanks!
-
if you want to play mp3 you can use MCI functions_**
**_
whitesky
I'm not sure mci functions can play a buffer in Mp3 format. Surely, MCI functions are the best approach to play Mp3 files. But in my case, I'm not sure they work. Anyway, thanks for your response. Regards,
-
Yes, that is exactly what I needed. I have a buffer in memory and I know for sure it is in Mp3 format. Then I want to play it without saving to disk. Can you tell me more about the filter? Thanks!
You can get the DirectShow wizard to generate the boilerplate code for a push source filter and start from there. http://tmhare.mvps.org/downloads.htm[^] There is also a Bouncing Ball source filter sample in the SDK. Aside from that you would probably need to ask a more specific question.