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)
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).
- 本文固定链接: http://www.wy182000.com/2009/02/19/xact-unknown-error-code/
- 转载请注明: wy182000 于 Studio 发表