Update SoundBase.cpp

Add a line, fix a trace log output
This commit is contained in:
Derek "Turtle" Roe 2021-03-27 04:10:14 -05:00
parent a7a30d2a1e
commit e3e99d0af0
1 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@
// Copyright(C) 2001-2021 Project64 // Copyright(C) 2001-2021 Project64
// Copyright(C) 2000-2015 Azimer // Copyright(C) 2000-2015 Azimer
// GNU/GPLv2 licensed: https://gnu.org/licenses/gpl-2.0.html // GNU/GPLv2 licensed: https://gnu.org/licenses/gpl-2.0.html
#include "SoundBase.h" #include "SoundBase.h"
#include <Common/Util.h> #include <Common/Util.h>
#include <Project64-audio/AudioSettings.h> #include <Project64-audio/AudioSettings.h>
@ -164,7 +165,7 @@ void SoundDriverBase::BufferAudio()
m_AI_DMAPrimaryBytes -= 4; m_AI_DMAPrimaryBytes -= 4;
if (m_AI_DMAPrimaryBytes == 0) if (m_AI_DMAPrimaryBytes == 0)
{ {
WriteTrace(TraceAudioDriver, TraceVerbose, "Emptied Primary Buffer"); WriteTrace(TraceAudioDriver, TraceVerbose, "Emptied primary buffer");
m_AI_DMAPrimaryBytes = m_AI_DMASecondaryBytes; m_AI_DMAPrimaryBuffer = m_AI_DMASecondaryBuffer; // Switch m_AI_DMAPrimaryBytes = m_AI_DMASecondaryBytes; m_AI_DMAPrimaryBuffer = m_AI_DMASecondaryBuffer; // Switch
m_AI_DMASecondaryBytes = 0; m_AI_DMASecondaryBuffer = NULL; m_AI_DMASecondaryBytes = 0; m_AI_DMASecondaryBuffer = NULL;
*g_AudioInfo.AI_STATUS_REG = AI_STATUS_DMA_BUSY; *g_AudioInfo.AI_STATUS_REG = AI_STATUS_DMA_BUSY;