From 0267264cddeb9773907ed9f09df2a54e1370479e Mon Sep 17 00:00:00 2001 From: kervala Date: Sun, 15 Nov 2015 18:31:20 +0100 Subject: [PATCH 1/3] Changed: Temporary comment the line because XAudio2 returns an error if used --- code/nel/src/sound/driver/xaudio2/sound_driver_xaudio2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/nel/src/sound/driver/xaudio2/sound_driver_xaudio2.cpp b/code/nel/src/sound/driver/xaudio2/sound_driver_xaudio2.cpp index b95735fc5..3cc7a7dd2 100644 --- a/code/nel/src/sound/driver/xaudio2/sound_driver_xaudio2.cpp +++ b/code/nel/src/sound/driver/xaudio2/sound_driver_xaudio2.cpp @@ -179,7 +179,7 @@ CSoundDriverXAudio2::CSoundDriverXAudio2(ISoundDriver::IStringMapperProvider * / uint32 flags = 0; #ifdef NL_DEBUG - flags |= XAUDIO2_DEBUG_ENGINE; // comment when done using this :) +// flags |= XAUDIO2_DEBUG_ENGINE; // comment when done using this :) #endif // XAudio2 From f9125741c430446a840c595711699f61da8436cb Mon Sep 17 00:00:00 2001 From: kervala Date: Sun, 15 Nov 2015 18:31:56 +0100 Subject: [PATCH 2/3] Changed: Display basic information for OpenAL driver --- code/nel/src/sound/driver/openal/sound_driver_al.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/code/nel/src/sound/driver/openal/sound_driver_al.cpp b/code/nel/src/sound/driver/openal/sound_driver_al.cpp index 82f52b782..4aa358062 100644 --- a/code/nel/src/sound/driver/openal/sound_driver_al.cpp +++ b/code/nel/src/sound/driver/openal/sound_driver_al.cpp @@ -630,7 +630,11 @@ void CSoundDriverAL::commit3DChanges() /// Write information about the driver to the output stream. void CSoundDriverAL::writeProfile(std::string& out) { - // TODO + out = toString("OpenAL\n"); + out += toString("Source size: %u\n", (uint32)_Sources.size()); + out += toString("Effects size: %u\n", (uint32)_Effects.size()); + + // TODO: write other useful information like OpenAL version and supported extensions } // Does not create a sound loader .. what does it do then? From 9ca49a8d0f40cb5be9ec7f3efbd2d0c018e5679c Mon Sep 17 00:00:00 2001 From: kervala Date: Sun, 15 Nov 2015 18:33:09 +0100 Subject: [PATCH 3/3] Fixed: Revert back TrapCrashInDebugger to false else VC++ can't intercept exceptions and we'll be unable to debug :( --- code/nel/src/misc/debug.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code/nel/src/misc/debug.cpp b/code/nel/src/misc/debug.cpp index 798161a21..bcd2d25cb 100644 --- a/code/nel/src/misc/debug.cpp +++ b/code/nel/src/misc/debug.cpp @@ -79,8 +79,7 @@ using namespace std; #define LOG_IN_FILE NEL_LOG_IN_FILE // If true, debug system will trap crash even if the application is in debugger -//static const bool TrapCrashInDebugger = false; -static const bool TrapCrashInDebugger = true; +static const bool TrapCrashInDebugger = false; #ifdef DEBUG_NEW #define new DEBUG_NEW