Skip to content

Commit

Permalink
Disable notification and low-severity debug messages by default
Browse files Browse the repository at this point in the history
  • Loading branch information
kcat committed Sep 28, 2024
1 parent 976e3ed commit aa85f56
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 0 additions & 1 deletion al/debug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

#include "alc/context.h"
#include "alc/device.h"
#include "alc/inprogext.h"
#include "alnumeric.h"
#include "alspan.h"
#include "alstring.h"
Expand Down
6 changes: 6 additions & 0 deletions alc/context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,12 @@ ALCcontext::ALCcontext(al::intrusive_ptr<ALCdevice> device, ContextFlagBitset fl
{
mDebugGroups.emplace_back(DebugSource::Other, 0, std::string{});
mDebugEnabled.store(mContextFlags.test(ContextFlags::DebugBit), std::memory_order_relaxed);

/* Notification and low-severity debug messages are disabled by default. */
alDebugMessageControlDirectEXT(this, AL_DONT_CARE_EXT, AL_DONT_CARE_EXT,
AL_DEBUG_SEVERITY_NOTIFICATION_EXT, 0, nullptr, AL_FALSE);
alDebugMessageControlDirectEXT(this, AL_DONT_CARE_EXT, AL_DONT_CARE_EXT,
AL_DEBUG_SEVERITY_LOW_EXT, 0, nullptr, AL_FALSE);
}

ALCcontext::~ALCcontext()
Expand Down

0 comments on commit aa85f56

Please sign in to comment.