diff options
| author | Lioncash <mathew1800@gmail.com> | 2020-10-21 13:32:25 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2020-10-21 13:32:28 -0400 |
| commit | 22a79289d37bb48fcc5a7ff7944b02052340df0e (patch) | |
| tree | 699c23e2b81354b06c40a823da27e6dc60760e8f /Source/Core/AudioCommon/OpenALStream.cpp | |
| parent | 09e87b79f19ce0fb06b236e15ebed414af57558a (diff) | |
AudioCommon: Migrate logging over to fmt
printf specifiers, begone!
Diffstat (limited to 'Source/Core/AudioCommon/OpenALStream.cpp')
| -rw-r--r-- | Source/Core/AudioCommon/OpenALStream.cpp | 12 |
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; } } |
