Advertisement Jump to content


This topic is now archived and is closed to further replies.


Audio formats in DirectSound

This topic is 6885 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello, does anyone know how to load audio files other than .wav or .voc , in directsound. For exemple, MIDI files, tracker music ( mod, it, etc. ), mp3 or other commonly used format ? I would appreciate any help I could get. Thank you in advance.

Share this post

Link to post
Share on other sites
Guest Anonymous Poster
Unfortunately currently all wave format DirectSound can play is non-compressed type. By Using CODEC(DLL) which supports the format you intend to play, you will easily get non-compressed wave data from compressed one. See mmedia.hlp for details. (But you must not assume CODECs have been installed to all Windows PC)

A sample code using CODEC.

Olivier Lapicque, author of Modplug Tracker, provides useful SDK to developers at his page.

Ah, DirectShow also will help you in case you want to play MP3.

From a game developer in Japan.

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!