Quick Question about DirectX

I'm searching in the DirectX 8 SDK's sample programme and it seams like DirectSound can't play nothing but *.wav

Here are the question :
-Is DirectSound can play other file format than wave ?
-Does DirectSound can play mp3 ?
-If not, what do I use instead of DirectSound



  • No sound library plays every possible audio format ;). DirectSound may provide wrapper functions for loading WAV's (I don't know, I haven't used DirectSound in a long time) but it simply plays the PCM data that is extracted from the file. To get the PCM data out of an MP3 is harder, you have to decode it (unlike WAV's). I think the DirectMedia portion of DirectX can decode MP3's for you. If I'm wrong, find a MP3 decoder somewhere.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion