Jump to content
  • Advertisement

Archived

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

Bleakcabal

Audio formats in DirectSound

This topic is 6793 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
Advertisement
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.
http://www2.osk.3web.ne.jp/~narimia/dloads/acmconv.zip

Olivier Lapicque, author of Modplug Tracker, provides useful SDK to developers at his page.
http://www.jps.net/olivierl/devs.htm

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 GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!