0
0

Hey, i am currently using codewarrior to amke a project and am tryin to get sound going..i got fmod and put the fmod.h in my project folder and added the file fmodvc.lib and put the .dll in the foler as well.

include <fstream.h>

include <iostream.h>

include <iomanip.h>

include <conio.h>

include <math.h>

include “apstring.h”

include <WinSIOUX.h>

include “fmod.h”

int main()
{
FSOUND_STREAM* pStream;

FSOUND_Init(44100,32,0); 
pStream = FSOUND_Stream_OpenFile("jaguar.wav",1,1); 
FSOUND_Stream_Play(FSOUND_FREE,pStream); 

}

Should this be wokring or what im i doing wrong?

  • You must to post comments
0
0

i think you need to tell it which driver to use, for example, in my project at tech i use directx sound driver( i think )

[code:392pfvoc]
FSOUND_SetOutput(FSOUND_OUTPUT_DSOUND);
FSOUND_SetDriver(0);
FSOUND_SetMixer(FSOUND_MIXER_AUTODETECT);
[/code:392pfvoc]

seems to work fine for me, but i reckon these are the lines you are missing( may need to change the parameters )

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.