0
0

Hi

Recently purchased FMOD.

One of my customers get a crash when having a external audio controller connected to the laptop via PCMIA. When plugged in M-Audio ASIO becomes the default.

When this is plugged in, my program crashes on startup. No error message is shown(Program waits for user to click OK before continuing)

I’m unable to debug since it’s a costumer far away..

Using fmod from 11 december

Here’s my startup code
[code:269xzhpk] result = FMOD_System_Create(&fmodsystem);
ERRCHECK(result);
result = FMOD_System_GetDriverCaps(fmodsystem, 0, &caps, 0, 0, &speakermode);
ERRCHECK(result);

result = FMOD_System_SetSpeakerMode(fmodsystem, speakermode);
ERRCHECK(result);

if (caps & FMOD_CAPS_HARDWARE_EMULATED)             
{                                                   
    result = FMOD_System_SetDSPBufferSize(fmodsystem, 1024, 10);
    ERRCHECK(result);
}

result = FMOD_System_GetDriverInfo(fmodsystem, 0, name, 256, 0);
ERRCHECK(result);
if (strstr(name, "SigmaTel"))   
{
    result = FMOD_System_SetSoftwareFormat(fmodsystem, 48000, FMOD_SOUND_FORMAT_PCMFLOAT, 0,0, FMOD_DSP_RESAMPLER_LINEAR);
    ERRCHECK(result);
}

result = FMOD_System_Init(fmodsystem, 50, FMOD_INIT_NORMAL, NULL);
ERRCHECK(result);
if (result == FMOD_ERR_OUTPUT_CREATEBUFFER)         
{
    result = FMOD_System_SetSpeakerMode(fmodsystem, FMOD_SPEAKERMODE_STEREO);
    ERRCHECK(result);

    result = FMOD_System_Init(fmodsystem, 50, FMOD_INIT_NORMAL, 0);
    ERRCHECK(result);
}

/*  CHECK FOR RECORDDEVICES */
result = FMOD_System_GetRecordNumDrivers(fmodsystem, &numdrivers);
ERRCHECK(result);[/code:269xzhpk]
  • You must to post comments
0
0

check the new recommended startup code, it actualy checks for if there are 0 devices now, which is a possibility here, otherwise you just have a driver bug plain and simple.

  • You must to post comments
0
0

I updated the code with the new startup code but it still crashes. He has got the latest drivers and it’s working great for lots of other applications.

Any ideas?

  • You must to post comments
0
0

After sending a version with a lot of "popup continue boxes" I’ve found out it crashes on FMOD_System_GetRecordDriverInfo
It’s a simple for loop going up to FMOD_System_GetRecordNumDrivers

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.