• Create Account

## XACT engine creation failed

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

6 replies to this topic

### #1Locutusborg  Members

Posted 17 September 2009 - 04:06 AM

Hello I am making a game in C++ / directx. I am using XACT for the audio part. Currently I am testing it on another machine. I have never had a problem on the programming pc, but on the testing pc it gives a failure at XACT3CreateEngine. I have installed the latest (Dx9.0c) version on the testing machine, but it still fails. Can anyone offer some suggestions? TNX!!
int probleem;
HRESULT hr;

// Clear struct om zeker te weten dat geen oude data
ZeroMemory( &g_audioState, sizeof(AUDIO_STATE) );

//----------------------------------------------
//Initialize XACT
//----------------------------------------------

hr = CoInitializeEx(NULL, COINIT_MULTITHREADED); //nodig voor windows COM commando's???
if( FAILED(hr) )
{probleem = 1;
return hr;}

hr = XACT3CreateEngine( XACT_FLAG_API_AUDITION_MODE, &g_audioState.Paudioengine ); //ipv 0 kan ook specificeren of debug / auditioning ??

if( FAILED(hr) )
{g_audioState.Paudioengine = NULL; //haalt audio engine waarde weg als niet gelukt is
probleem = 2;
return hr;} //it stops here....



### #2filipe  Members

Posted 17 September 2009 - 04:26 PM

Are you calling IXACT3Engine::Initialize()? Like this:

        XACT_RUNTIME_PARAMETERS xrParams = {0};    xrParams.lookAheadTime = XACT_ENGINE_LOOKAHEAD_DEFAULT;    hr = pEngine->Initialize(&xrParams);    if(FAILED(hr))    {        return hr;    }

?

### #3Codeka  Members

Posted 17 September 2009 - 04:37 PM

Quote:
 Original post by filipeAre you calling IXACT3Engine::Initialize()? Like this:
I don't think he's even getting to that stage if XACT3CreateEngine is what is failing...

I believe the problem is that you're passing the XACT_FLAG_API_AUDITION_MODE flag, which would only work on a computer with the SDK installed (you don't want to be doing auditioning on a released title).

### #4filipe  Members

Posted 17 September 2009 - 04:45 PM

Quote:
Original post by Codeka
Quote:
 Original post by filipeAre you calling IXACT3Engine::Initialize()? Like this:
I don't think he's even getting to that stage if XACT3CreateEngine is what is failing...

I see. Somehow I failed to notice he mentioned that in his post!

### #5Locutusborg  Members

Posted 17 September 2009 - 06:28 PM

Thanks for the tip, now I at least know where to look for.
But if audition mode is only for the SDK, and the only other option I know of is XACT_FLAG_API_DEBUG_MODE , what should I call then?
Thanks a lot!

### #6Codeka  Members

Posted 17 September 2009 - 06:47 PM

Just pass 0 if you don't want to specify any flags.

### #7Locutusborg  Members

Posted 17 September 2009 - 08:11 PM

worked like a charm
tnx

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.