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