Sign in to follow this  

XACT engine creation failed

This topic is 3043 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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....


Share this post


Link to post
Share on other sites
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;
}


?

Share this post


Link to post
Share on other sites
Quote:
Original post by filipe
Are 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).

Share this post


Link to post
Share on other sites
Quote:
Original post by Codeka
Quote:
Original post by filipe
Are 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!

Share this post


Link to post
Share on other sites
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!

Share this post


Link to post
Share on other sites
Sign in to follow this