Answered by:
IXAudio2 SetDebugConfiguration - can't log api calls, details, infos.

Question
-
hi guys,
It seems the current implementation of IXAudio2 SetDebugConfiguration only handles XAUDIO2_LOG_ERRORS.
All the other useful flags seem to be ignored.
Every other flag seems to be ignored. I'm especially in need of the XAUDIO2_LOG_API_CALLS flags.
: : : hRes = XAudio2Create (&g_pXAudio2,0); v4sapi_error_on_res ("XAudio2Create", hRes);
// all flags but XAUDIO2_LOG_ERROR seem to be ignored. #if defined(_DEBUG) XAUDIO2_DEBUG_CONFIGURATION debugConfiguration = {0}; // debugConfiguration.BreakMask = XAUDIO2_LOG_ERRORS; // debugConfiguration.TraceMask = XAUDIO2_LOG_ERRORS; debugConfiguration.TraceMask = XAUDIO2_LOG_ERRORS | XAUDIO2_LOG_DETAIL | XAUDIO2_LOG_API_CALLS | XAUDIO2_LOG_FUNC_CALLS; debugConfiguration.BreakMask = 0; g_pXAudio2->SetDebugConfiguration(&debugConfiguration); #endif : : :
Anybody experiencing the same here? Or any useful tips ?
Cheers,
Roman
Roman Pfneudl CEO - vertex4 entertainment ltd.
Friday, June 1, 2012 8:59 AM
Answers
-
Hello,
You can check this document
Note For this version of XAudio2, only the XAUDIO2_LOG_ERRORS value is supported on TraceMask or BreakMask. All other members and values are ignored.
Best regards,
Jesse
Jesse Jiang [MSFT]
MSDN Community Support | Feedback to us
- Marked as answer by v4corg Monday, June 4, 2012 11:51 AM
Monday, June 4, 2012 6:37 AM
All replies
-
Hello,
You can check this document
Note For this version of XAudio2, only the XAUDIO2_LOG_ERRORS value is supported on TraceMask or BreakMask. All other members and values are ignored.
Best regards,
Jesse
Jesse Jiang [MSFT]
MSDN Community Support | Feedback to us
- Marked as answer by v4corg Monday, June 4, 2012 11:51 AM
Monday, June 4, 2012 6:37 AM -
Feared so - thank you, Jesse !
Roman Pfneudl CEO - vertex4 entertainment ltd.
Monday, June 4, 2012 11:51 AM -
With XAudio 2.7, a special debug version of the DLL was generated that handled all the extra tracing which was not present in production builds. The output is sent to the debug output channel.
With XAudio 2.8, there's only a single version of the DLL so it has only error tracing built-in, which is output via ETW.
- Edited by Chuck Walbourn - MSFTMicrosoft employee Thursday, February 5, 2015 1:22 AM
Thursday, February 5, 2015 1:22 AM