0
0

I have a working piece of code that plays a smaple in a 3D, the following line is in the code :

samp1 = FSOUND_Sample_Load(FSOUND_FREE, “Drumloop.wav”, FSOUND_HW3D, 0);

My problem is that when I change the sample loaded it works for some wavs but others give an ‘unknown file type’ error. Is this to do with only some types of wavs being supported in 3d. If so does anyone know what restrictions are on them. More importantly I cannot seem to play any mp3 files this way.
Any help would be much appreciated.

  • You must to post comments
0
0

Hey, 3D sounds have to be mono, this is a DirectSound 8 restriction, because it doesn’t really make sense to position a stereo sound in 3d.
You can use the FSOUND_FORCEMONO flag to automatically convert the sound to mono, so that it can be positioned in 3d.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.