Commit 8ea0607b authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

xactengine3_7: Explicity copy the XACT_RUNTIME_PARAMETERS members.

parent 16984895
......@@ -776,7 +776,16 @@ static HRESULT WINAPI IXACT3EngineImpl_Initialize(IXACT3Engine *iface,
TRACE("(%p)->(%p)\n", This, pParams);
memcpy(&params, pParams, sizeof(FACTRuntimeParameters));
memset(&params, 0, sizeof(FACTRuntimeParameters));
/* Explicitly copy to the FAudio structure as the packing is wrong under 64 bits */
params.lookAheadTime = pParams->lookAheadTime;
params.pGlobalSettingsBuffer = pParams->pGlobalSettingsBuffer;
params.globalSettingsBufferSize = pParams->globalSettingsBufferSize;
params.globalSettingsFlags = pParams->globalSettingsFlags;
params.globalSettingsAllocAttributes = pParams->globalSettingsAllocAttributes;
params.pRendererID = (int16_t*)pParams->pRendererID;
params.pXAudio2 = NULL;
params.pMasteringVoice = NULL;
/* FIXME: pXAudio2 and pMasteringVoice are pointers to
* IXAudio2/IXAudio2MasteringVoice objects. FACT wants pointers to
......@@ -789,12 +798,10 @@ static HRESULT WINAPI IXACT3EngineImpl_Initialize(IXACT3Engine *iface,
* -flibit
*/
if (pParams->pXAudio2 != NULL){
FIXME("pXAudio2 parameter not supported! Falling back to NULL\n");
params.pXAudio2 = NULL;
FIXME("pXAudio2 parameter not supported!\n");
if (pParams->pMasteringVoice != NULL){
FIXME("pXAudio2 parameter not supported! Falling back to NULL\n");
params.pMasteringVoice = NULL;
FIXME("pMasteringVoice parameter not supported!\n");
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment