I'm trying to get a simple progam to compile that uses FMod. When I compile it produces this error:
C:\projects\fmodtest\test.c
too many arguments to function `FSOUND_Sample_Load'
Why?
I'm using Dev-C++ 5 as my programming environment. Incase I haven't setup things up properly, I have fmod.h located in dev-cpp\include\fmod and fmod.lib in dev-cpp\libs.
Here's the code:
Code:
#include <stdio.h>
#include "fmod.h"
int main(void)
{
FSOUND_SAMPLE* sound;
FSOUND_Init(44100, 32, 0);
sound = FSOUND_Sample_Load(FSOUND_FREE,"C:/projects/plain_pong/score.wav",FSOUND_NORMAL,0, 0);
FSOUND_PlaySound(FSOUND_FREE,sound);
getchar();
FSOUND_Sample_Free(sound);
FSOUND_Close();
return 0;
}