From d14aa2eba9e96986e19eab72d33c8b7a5619bd24 Mon Sep 17 00:00:00 2001 From: Frank-74 Date: Fri, 22 Sep 2017 22:30:42 +0100 Subject: [PATCH] Update SoundBase.cpp --- Source/Project64-audio/Driver/SoundBase.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/Project64-audio/Driver/SoundBase.cpp b/Source/Project64-audio/Driver/SoundBase.cpp index 52961921d..1293abd4a 100644 --- a/Source/Project64-audio/Driver/SoundBase.cpp +++ b/Source/Project64-audio/Driver/SoundBase.cpp @@ -182,6 +182,11 @@ void SoundDriverBase::BufferAudio() WriteTrace(TraceAudioDriver, TraceVerbose, "Done (m_BufferRemaining: 0x%08X)", m_BufferRemaining); } +uint32_t SoundDriverBase::AI_ReadLength() +{ + return (m_AI_DMAPrimaryBytes & ~ 3); +} + void SoundDriverBase::SetFrequency(uint32_t /*Frequency*/) { } @@ -192,4 +197,4 @@ void SoundDriverBase::StartAudio() void SoundDriverBase::StopAudio() { -} \ No newline at end of file +}