unknown error code
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.
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 -
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)
Ashu Tatake - Game Audio Team - Microsoft Corp.
This posting is provided "as is" with no warranties, and confers no rights