0
0

Hello.

Im using the latest release of fmod and I am a little new to c++.  I am currently using msvc++ 6.  I am writing a dll which links to the fmod.dll.  I have my dll linked to fmodvc.lib.  Whenever I call the Initialize procedure I get a memory error.  "The memory at blah blah address could not be read".  At which point the entire program closes.  My init procedure looks like this:

int InitPlugin(HWND hwnd)
{

//initialize fmod
FSOUND_SetOutput(FSOUND_OUTPUT_DSOUND);
FSOUND_SetDriver(0);
FSOUND_SetMixer(FSOUND_MIXER_QUALITY_AUTODETECT);
FSOUND_SetHWND(hwnd);

if (!FSOUND_Init(44100, 128, FSOUND_INIT_GLOBALFOCUS))
{
    return ERR_INITIALIZE;
}

            return INITIALIZE_SUCCESS;

}

If someone could point me in the right direction I would appreciate it.

Thank you.

  • You must to post comments
0
0

The samples seem to work. I am unsure why I am getting a memory access error. I tried setting the procedure with just the FSOUND_Init call, still no luck 😕

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.