I’m using VC++ and I used the following code to play a simple Wav file

include <iostream.h>

include “fmod.h”

include “fmod_errors.h”

include <Windows.h> //for Sleep()

int main()

FSOUND_Init(44100, 64, 0);
samp = FSOUND_Sample_Load(,FSOUND_FREE, “C:/windows/media/chimes.wav”, FSOUND_HW3D | FSOUND_LOOP_NORMAL); //load samp
cout << “You should hear the sound now!” << endl; FSOUND_PlaySound(FSOUND_FREE, samp); // play samp
Sleep(700); //chimes is ~0.63 seconds long, we wanna wait so we can hear the sound before we shutdown FSOUND
return 0;


the error its giving me that fsound_sample_load doesnt accept 3 parameters ,I know there is something wrong with the above code can combody point out the problem ,what change do I need to make.

Or if anyone have a sample peice of code of running a Wav file please paste it here .I’m basicaly a beginner..
Thank you

  • You must to post comments

samp = FSOUND_Sample_Load(FSOUND_FREE, “C:/windows/media/chimes.wav”, FSOUND_HW3D | FSOUND_LOOP_NORMAL, 0); //load samp

And please, RTFM ! :smile:

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.