Audio formats in DirectSound

Started by
1 comment, last by Bleakcabal 24 years, 1 month ago
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.
WHO DO THEYTHINK THEY'REFOOLING : YOU ?
Advertisement
I think you should use direct music for midi type stuff.
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.

This topic is closed to new replies.

Advertisement