diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2024-03-17 04:56:00 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-17 04:56:00 +0100 |
| commit | 8c181dbd3159f396ceb81cc35645d592454bf8aa (patch) | |
| tree | 39fbbfe84c937c9ab525216b458b5a18ea9f3ac4 /Source/Core/AudioCommon/CubebUtils.cpp | |
| parent | 369502b49b9573875e6bab053a60b36ed8e30440 (diff) | |
| parent | d933e58d9a1796abd59f66d80c23c2ff656c10ea (diff) | |
Merge pull request #12643 from Tilka/cubeb
Cubeb: check correct log level
Diffstat (limited to 'Source/Core/AudioCommon/CubebUtils.cpp')
| -rw-r--r-- | Source/Core/AudioCommon/CubebUtils.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/AudioCommon/CubebUtils.cpp b/Source/Core/AudioCommon/CubebUtils.cpp index 710b68ca93..75b78f687f 100644 --- a/Source/Core/AudioCommon/CubebUtils.cpp +++ b/Source/Core/AudioCommon/CubebUtils.cpp @@ -25,7 +25,8 @@ static void LogCallback(const char* format, ...) return; constexpr auto log_type = Common::Log::LogType::AUDIO; - if (!instance->IsEnabled(log_type)) + constexpr auto log_level = Common::Log::LogLevel::LINFO; + if (!instance->IsEnabled(log_type, log_level)) return; va_list args; @@ -36,8 +37,7 @@ static void LogCallback(const char* format, ...) const std::string message = StringFromFormatV(adapted_format.c_str(), args); va_end(args); - instance->LogWithFullPath(Common::Log::LogLevel::LINFO, log_type, filename, lineno, - message.c_str()); + instance->LogWithFullPath(log_level, log_type, filename, lineno, message.c_str()); } static void DestroyContext(cubeb* ctx) |
