I have code:
// ...
IXACTEngine* m_pXACTEngine
// ... create m_pXACEngine and so on
XACT_RUNTIME_PARAMETERS xactParams;
ZeroMemory(&xactParams, sizeof(xactParams));
/*
fill xactParams exclude
XACT_RUNTIME_PARAMETERS ::globalSettingsBufferSize; // == 0
XACT_RUNTIME_PARAMETERS ::globalSettingsFlags; // == 0
XACT_RUNTIME_PARAMETERS ::globalSettingsAllocAttributes; // == 0
*/
hr = m_pXACTEngine->Initialize(&xactParams);
if (SUCCEEDED(hr))
{
XACTVARIABLEINDEX xactSpeedOfSoundID =
m_pXACTEngine->GetGlobalVariableInde("SpeedOfSound");
// now xactSpeedOfSoundID == XACTVARIABLEINDEX_INVALID
XACTVARIABLEVALUE nSpeedOfSound = 0;
hr = m_pXACTEngine->GetGlobalVariable(xactSpeedOfSoundID, &nSpeedOfSound);
//...
but m_pXACTEngine->GetGlobalVariable crushed with access violation