AudioCommon: Log to AUDIO, not DSPHLE
This code is not related to DSPHLE.
This commit is contained in:
parent
59e48e0fcf
commit
3f78d74fc1
|
@ -57,7 +57,7 @@ namespace AudioCommon
|
|||
|
||||
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);
|
||||
g_sound_stream = new NullSound();
|
||||
}
|
||||
|
@ -84,7 +84,7 @@ namespace AudioCommon
|
|||
|
||||
void ShutdownSoundStream()
|
||||
{
|
||||
INFO_LOG(DSPHLE, "Shutting down sound stream");
|
||||
INFO_LOG(AUDIO, "Shutting down sound stream");
|
||||
|
||||
if (g_sound_stream)
|
||||
{
|
||||
|
@ -95,7 +95,7 @@ namespace AudioCommon
|
|||
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()
|
||||
|
|
|
@ -210,11 +210,11 @@ void CMixer::StartLogDTKAudio(const std::string& filename)
|
|||
m_log_dtk_audio = true;
|
||||
m_wave_writer_dtk.Start(filename, 48000);
|
||||
m_wave_writer_dtk.SetSkipSilence(false);
|
||||
NOTICE_LOG(DSPHLE, "Starting DTK Audio logging");
|
||||
NOTICE_LOG(AUDIO, "Starting DTK Audio logging");
|
||||
}
|
||||
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_wave_writer_dtk.Stop();
|
||||
NOTICE_LOG(DSPHLE, "Stopping DTK Audio logging");
|
||||
NOTICE_LOG(AUDIO, "Stopping DTK Audio logging");
|
||||
}
|
||||
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_wave_writer_dsp.Start(filename, 32000);
|
||||
m_wave_writer_dsp.SetSkipSilence(false);
|
||||
NOTICE_LOG(DSPHLE, "Starting DSP Audio logging");
|
||||
NOTICE_LOG(AUDIO, "Starting DSP Audio logging");
|
||||
}
|
||||
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_wave_writer_dsp.Stop();
|
||||
NOTICE_LOG(DSPHLE, "Stopping DSP Audio logging");
|
||||
NOTICE_LOG(AUDIO, "Stopping DSP Audio logging");
|
||||
}
|
||||
else
|
||||
{
|
||||
WARN_LOG(DSPHLE, "DSP Audio logging has already been stopped");
|
||||
WARN_LOG(AUDIO, "DSP Audio logging has already been stopped");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -39,11 +39,11 @@ public:
|
|||
m_logAudio = true;
|
||||
g_wave_writer.Start(filename, m_mixer->GetSampleRate());
|
||||
g_wave_writer.SetSkipSilence(false);
|
||||
NOTICE_LOG(DSPHLE, "Starting Audio logging");
|
||||
NOTICE_LOG(AUDIO, "Starting Audio logging");
|
||||
}
|
||||
else
|
||||
{
|
||||
WARN_LOG(DSPHLE, "Audio logging already started");
|
||||
WARN_LOG(AUDIO, "Audio logging already started");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -53,11 +53,11 @@ public:
|
|||
{
|
||||
m_logAudio = false;
|
||||
g_wave_writer.Stop();
|
||||
NOTICE_LOG(DSPHLE, "Stopping Audio logging");
|
||||
NOTICE_LOG(AUDIO, "Stopping Audio logging");
|
||||
}
|
||||
else
|
||||
{
|
||||
WARN_LOG(DSPHLE, "Audio logging already stopped");
|
||||
WARN_LOG(AUDIO, "Audio logging already stopped");
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue