summaryrefslogtreecommitdiff
path: root/Source/Core/AudioCommon/OpenALStream.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/AudioCommon/OpenALStream.cpp')
-rw-r--r--Source/Core/AudioCommon/OpenALStream.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/Core/AudioCommon/OpenALStream.cpp b/Source/Core/AudioCommon/OpenALStream.cpp
index 887e0f97f2..ae04cab0b9 100644
--- a/Source/Core/AudioCommon/OpenALStream.cpp
+++ b/Source/Core/AudioCommon/OpenALStream.cpp
@@ -101,7 +101,7 @@ bool OpenALStream::Init()
}
const char* default_device_dame = palcGetString(nullptr, ALC_DEFAULT_DEVICE_SPECIFIER);
- INFO_LOG(AUDIO, "Found OpenAL device %s", default_device_dame);
+ INFO_LOG_FMT(AUDIO, "Found OpenAL device {}", default_device_dame);
ALCdevice* device = palcOpenDevice(default_device_dame);
if (!device)
@@ -204,7 +204,7 @@ static ALenum CheckALError(const char* desc)
break;
}
- ERROR_LOG(AUDIO, "Error %s: %08x %s", desc, err, type.c_str());
+ ERROR_LOG_FMT(AUDIO, "Error {}: {:08x} {}", desc, err, type);
}
return err;
@@ -246,8 +246,8 @@ void OpenALStream::SoundLoop()
frames_per_buffer = OAL_MAX_FRAMES;
}
- INFO_LOG(AUDIO, "Using %d buffers, each with %d audio frames for a total of %d.", OAL_BUFFERS,
- frames_per_buffer, frames_per_buffer * OAL_BUFFERS);
+ INFO_LOG_FMT(AUDIO, "Using {} buffers, each with {} audio frames for a total of {}.", OAL_BUFFERS,
+ frames_per_buffer, frames_per_buffer * OAL_BUFFERS);
// Should we make these larger just in case the mixer ever sends more samples
// than what we request?
@@ -352,8 +352,8 @@ void OpenALStream::SoundLoop()
if (err == AL_INVALID_ENUM)
{
// 5.1 is not supported by the host, fallback to stereo
- WARN_LOG(AUDIO,
- "Unable to set 5.1 surround mode. Updating OpenAL Soft might fix this issue.");
+ WARN_LOG_FMT(
+ AUDIO, "Unable to set 5.1 surround mode. Updating OpenAL Soft might fix this issue.");
use_surround = false;
}
}