0
0

Is there any way to turn fmod on and off? I haven’t figured out a way yet so I was wondering is there a way to do so.

  • You must to post comments
0
0

void Fmod_off (void)
{
/ do some test before (channel active, song playing …) and unload music/stream
FSOUND_Close(); // turn off fmod
}

void Fmod_on(void)
{
// this is just an example
FSOUND_SetOutput(FSOUND_OUTPUT_DSOUND);
FSOUND_SetDriver(0);
FSOUND_SetMixer(FSOUND_MIXER_QUALITY_AUTODETECT);
FSOUND_SetHWND(hwnd);
}

Note there is a documentation (FMOD.chm) and a great sample showing this (in sample/fmod/).

  • You must to post comments
0
0

void Fmod_off (void)
{
/ do some test before (channel active, song playing …) and unload music/stream
FSOUND_Close(); // turn off fmod
}

void Fmod_on(void)
{
// this is just an example
FSOUND_SetOutput(FSOUND_OUTPUT_DSOUND);
FSOUND_SetDriver(0);
FSOUND_SetMixer(FSOUND_MIXER_QUALITY_AUTODETECT);
FSOUND_SetHWND(hwnd);
FSOUND_Init(44100, 32, 0)
}

Note there is a documentation (FMOD.chm) and a great sample showing this (in sample/fmod/).

  • You must to post comments
0
0

Hey, thanks for the reply just figured I would post a little correction to what you suggested above. It’d be better to use

bool Fmod_Off()
{
blah blah
return true;
}
bool Fmod_On()
{
blah blah
return true;
}

I say that above code is better because if you user has the incorrect fmod.dll file then the program will close post the message box saying that it’s the wrong .dll and also with an error box with the buttons: close, debug, and ignore I think on it. By using bool with returned values I therefore allivitate error problem, but the message box does still show.

Again, thanks for the reply.

  • You must to post comments
0
0

your way is my way =)

  • You must to post comments
0
0

Cool. hey I wonder when is the next version of FMOD do out?

  • You must to post comments
Showing 5 results
Your Answer

Please first to submit.