AudioCommon: Log to AUDIO, not DSPHLE

This code is not related to DSPHLE.
This commit is contained in:
Lioncash 2015-08-09 21:36:00 -04:00
parent 59e48e0fcf
commit 3f78d74fc1
3 changed files with 15 additions and 15 deletions

View File

@ -57,7 +57,7 @@ namespace AudioCommon
if (!g_sound_stream && NullSound::isValid()) if (!g_sound_stream && NullSound::isValid())
{ {
WARN_LOG(DSPHLE, "Could not initialize backend %s, using %s instead.", WARN_LOG(AUDIO, "Could not initialize backend %s, using %s instead.",
backend.c_str(), BACKEND_NULLSOUND); backend.c_str(), BACKEND_NULLSOUND);
g_sound_stream = new NullSound(); g_sound_stream = new NullSound();
} }
@ -84,7 +84,7 @@ namespace AudioCommon
void ShutdownSoundStream() void ShutdownSoundStream()
{ {
INFO_LOG(DSPHLE, "Shutting down sound stream"); INFO_LOG(AUDIO, "Shutting down sound stream");
if (g_sound_stream) if (g_sound_stream)
{ {
@ -95,7 +95,7 @@ namespace AudioCommon
g_sound_stream = nullptr; g_sound_stream = nullptr;
} }
INFO_LOG(DSPHLE, "Done shutting down sound stream"); INFO_LOG(AUDIO, "Done shutting down sound stream");
} }
std::vector<std::string> GetSoundBackends() std::vector<std::string> GetSoundBackends()

View File

@ -210,11 +210,11 @@ void CMixer::StartLogDTKAudio(const std::string& filename)
m_log_dtk_audio = true; m_log_dtk_audio = true;
m_wave_writer_dtk.Start(filename, 48000); m_wave_writer_dtk.Start(filename, 48000);
m_wave_writer_dtk.SetSkipSilence(false); m_wave_writer_dtk.SetSkipSilence(false);
NOTICE_LOG(DSPHLE, "Starting DTK Audio logging"); NOTICE_LOG(AUDIO, "Starting DTK Audio logging");
} }
else else
{ {
WARN_LOG(DSPHLE, "DTK Audio logging has already been started"); WARN_LOG(AUDIO, "DTK Audio logging has already been started");
} }
} }
@ -224,11 +224,11 @@ void CMixer::StopLogDTKAudio()
{ {
m_log_dtk_audio = false; m_log_dtk_audio = false;
m_wave_writer_dtk.Stop(); m_wave_writer_dtk.Stop();
NOTICE_LOG(DSPHLE, "Stopping DTK Audio logging"); NOTICE_LOG(AUDIO, "Stopping DTK Audio logging");
} }
else else
{ {
WARN_LOG(DSPHLE, "DTK Audio logging has already been stopped"); WARN_LOG(AUDIO, "DTK Audio logging has already been stopped");
} }
} }
@ -239,11 +239,11 @@ void CMixer::StartLogDSPAudio(const std::string& filename)
m_log_dsp_audio = true; m_log_dsp_audio = true;
m_wave_writer_dsp.Start(filename, 32000); m_wave_writer_dsp.Start(filename, 32000);
m_wave_writer_dsp.SetSkipSilence(false); m_wave_writer_dsp.SetSkipSilence(false);
NOTICE_LOG(DSPHLE, "Starting DSP Audio logging"); NOTICE_LOG(AUDIO, "Starting DSP Audio logging");
} }
else else
{ {
WARN_LOG(DSPHLE, "DSP Audio logging has already been started"); WARN_LOG(AUDIO, "DSP Audio logging has already been started");
} }
} }
@ -253,11 +253,11 @@ void CMixer::StopLogDSPAudio()
{ {
m_log_dsp_audio = false; m_log_dsp_audio = false;
m_wave_writer_dsp.Stop(); m_wave_writer_dsp.Stop();
NOTICE_LOG(DSPHLE, "Stopping DSP Audio logging"); NOTICE_LOG(AUDIO, "Stopping DSP Audio logging");
} }
else else
{ {
WARN_LOG(DSPHLE, "DSP Audio logging has already been stopped"); WARN_LOG(AUDIO, "DSP Audio logging has already been stopped");
} }
} }

View File

@ -39,11 +39,11 @@ public:
m_logAudio = true; m_logAudio = true;
g_wave_writer.Start(filename, m_mixer->GetSampleRate()); g_wave_writer.Start(filename, m_mixer->GetSampleRate());
g_wave_writer.SetSkipSilence(false); g_wave_writer.SetSkipSilence(false);
NOTICE_LOG(DSPHLE, "Starting Audio logging"); NOTICE_LOG(AUDIO, "Starting Audio logging");
} }
else else
{ {
WARN_LOG(DSPHLE, "Audio logging already started"); WARN_LOG(AUDIO, "Audio logging already started");
} }
} }
@ -53,11 +53,11 @@ public:
{ {
m_logAudio = false; m_logAudio = false;
g_wave_writer.Stop(); g_wave_writer.Stop();
NOTICE_LOG(DSPHLE, "Stopping Audio logging"); NOTICE_LOG(AUDIO, "Stopping Audio logging");
} }
else else
{ {
WARN_LOG(DSPHLE, "Audio logging already stopped"); WARN_LOG(AUDIO, "Audio logging already stopped");
} }
} }
}; };