mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
AudioCommon: Migrate logging over to fmt
printf specifiers, begone!
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user