CreateInMemoryWaveBank returns -1966669817

With the release of the April SDK, our team decided to use XACT instead of DA, but we're getting a strange return code from CreateInMemoryWaveBank: -1966669817. I've never seen this HRESULT code, not can I find what it means. The debug output reports:

Error: Invalid wavebank signature in header
Error: Invalid wavebank header (0x00000000)

which I assumed meant there was something wrong with the data files we were loading. But we also ran the app with the SDK sample media and produced the same result. We've also tried both memory-mapped data buffers and normal ReadFile with identical results. What gives?

Rob
Lead Software Engineer, CSU Games

[664 byte] By [edenxiii] at [2008-2-3]
# 1

That error code is XACTENGINE_E_INVALIDDATA, and is documented in the header file xact.h (along with all the XACT specific error codes).

There are several potential reasons you are getting this error, the most common two are:

1. You have invalid data :) Are you sure you are passing in a wavebank file to the method (*.xwb)?
2. You may have built the wrong version of the wavebank file. If you are using xact.exe, make sure your "view" is set appropriately (View menu -> Xbox 360 / Windows). If you are building with xactbld.exe (and building for Windows), make sure you use the /WIN32 flag.

Let me know if this helps.

RobertHeitkamp-Microsoft at 2007-8-30 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: Audio / XACT...
# 2
Check out the problem I had here...it's the same error.

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=339404&SiteID=1

Cheers
Stephen Orr

StephenOrr at 2007-8-30 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: Audio / XACT...
# 3
I have being using XACT in my previous projects and its worked fine, I am now running vs2005 (previously 2003) and I am now recieving this error with the strange hresult.

I cannot run the XACT tool either, I have the August SDK installed. Ive tried reinstalling it but I still recieve an error when loading the xact.exe. It worked fine on previous sdk's but now it refuses to work.

"xact.exe - common language runtime debugging service
process id= thread id=
application has generated an exception that could not be handled"

any help appreciated

mike5432 at 2007-8-30 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: Audio / XACT...