unknown error code

when i call:
theSoundBank->Prepare(index, 0, 0, &myCue);
it returns 0x8AC70013 and sets myCue to null. GetLastError() returns 0. what does 0x8AC70013 mean? FormatMessage does not work on that error code.
[218 byte] By [AaronB] at [2008-2-16]
# 1

All XACT methods return an HRESULT which are either standard COM error codes or XACT specific error codes defined in the header XACT.h. In this case the error code is XACTENGINE_E_NOWAVEBANK which is most likely being returned because a wavebank required for the soundbank you're trying to prepare has not been created.

There are couple quick ways to check for the returned error code -

  • If you have the DX SDK installed then the easiest way to check for the error codes is by using the "DirectX Error Lookup" tool. This tool will give you a description like -

HRESULT: 0x8ac70013 (2328297491)
Name: XACTENGINE_E_NOWAVEBANK
Description: No wavebank exists for desired operation.
Severity code: Failed
Facility Code: Unknown (2759)
Error Code: 0x0013 (19)

  • Just look for the last 3 digits of the error code in XACT.h. In this case look for 0x8AC70013 in XACT.h (0x8AC7 is reserved and common to all XACT error codes).

Ashu Tatake - Game Audio Team - Microsoft Corp.

This posting is provided "as is" with no warranties, and confers no rights

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