summaryrefslogtreecommitdiff
path: root/Source/Core/AudioCommon/AudioCommon.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-10-21 13:32:25 -0400
committerLioncash <mathew1800@gmail.com>2020-10-21 13:32:28 -0400
commit22a79289d37bb48fcc5a7ff7944b02052340df0e (patch)
tree699c23e2b81354b06c40a823da27e6dc60760e8f /Source/Core/AudioCommon/AudioCommon.cpp
parent09e87b79f19ce0fb06b236e15ebed414af57558a (diff)
AudioCommon: Migrate logging over to fmt
printf specifiers, begone!
Diffstat (limited to 'Source/Core/AudioCommon/AudioCommon.cpp')
-rw-r--r--Source/Core/AudioCommon/AudioCommon.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/Source/Core/AudioCommon/AudioCommon.cpp b/Source/Core/AudioCommon/AudioCommon.cpp
index 1330785ac8..3d7705bba1 100644
--- a/Source/Core/AudioCommon/AudioCommon.cpp
+++ b/Source/Core/AudioCommon/AudioCommon.cpp
@@ -54,16 +54,15 @@ void InitSoundStream()
if (!g_sound_stream)
{
- WARN_LOG(AUDIO, "Unknown backend %s, using %s instead.", backend.c_str(),
- GetDefaultSoundBackend().c_str());
+ WARN_LOG_FMT(AUDIO, "Unknown backend {}, using {} instead.", backend, GetDefaultSoundBackend());
backend = GetDefaultSoundBackend();
g_sound_stream = CreateSoundStreamForBackend(GetDefaultSoundBackend());
}
if (!g_sound_stream || !g_sound_stream->Init())
{
- WARN_LOG(AUDIO, "Could not initialize backend %s, using %s instead.", backend.c_str(),
- BACKEND_NULLSOUND);
+ WARN_LOG_FMT(AUDIO, "Could not initialize backend {}, using {} instead.", backend,
+ BACKEND_NULLSOUND);
g_sound_stream = std::make_unique<NullSound>();
g_sound_stream->Init();
}
@@ -83,7 +82,7 @@ void InitSoundStream()
void ShutdownSoundStream()
{
- INFO_LOG(AUDIO, "Shutting down sound stream");
+ INFO_LOG_FMT(AUDIO, "Shutting down sound stream");
if (SConfig::GetInstance().m_DumpAudio && s_audio_dump_start)
StopAudioDump();
@@ -91,7 +90,7 @@ void ShutdownSoundStream()
SetSoundStreamRunning(false);
g_sound_stream.reset();
- INFO_LOG(AUDIO, "Done shutting down sound stream");
+ INFO_LOG_FMT(AUDIO, "Done shutting down sound stream");
}
std::string GetDefaultSoundBackend()
@@ -180,9 +179,9 @@ void SetSoundStreamRunning(bool running)
if (g_sound_stream->SetRunning(running))
return;
if (running)
- ERROR_LOG(AUDIO, "Error starting stream.");
+ ERROR_LOG_FMT(AUDIO, "Error starting stream.");
else
- ERROR_LOG(AUDIO, "Error stopping stream.");
+ ERROR_LOG_FMT(AUDIO, "Error stopping stream.");
}
void SendAIBuffer(const short* samples, unsigned int num_samples)