I’m using VC++ and I used the following code to play a simple Wav file
include <Windows.h> //for Sleep()
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
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..
- shehz asked 15 years ago
- You must login to post comments