Update SoundBase.cpp

This commit is contained in:
Frank-74 2017-10-13 01:37:49 +01:00 committed by GitHub
parent 80e1bcaad0
commit e7ce869a25
1 changed files with 5 additions and 5 deletions

View File

@ -34,10 +34,10 @@ bool SoundDriverBase::Initialize()
return true;
}
void SoundDriverBase::AI_SetFrequency(uint32_t Frequency)
void SoundDriverBase::AI_SetFrequency(uint32_t Frequency, uint32_t BufferSize)
{
SetFrequency(Frequency);
m_MaxBufferSize = (uint32_t)((Frequency / g_settings->BufferDivider())) * 4 * g_settings->BufferLevel();
SetFrequency(Frequency, BufferSize);
m_MaxBufferSize = (BufferSize * 4);
m_BufferRemaining = 0;
m_CurrentReadLoc = m_CurrentWriteLoc = m_BufferRemaining = 0;
}
@ -187,7 +187,7 @@ void SoundDriverBase::BufferAudio()
WriteTrace(TraceAudioDriver, TraceVerbose, "Done (m_BufferRemaining: 0x%08X)", m_BufferRemaining);
}
void SoundDriverBase::SetFrequency(uint32_t /*Frequency*/)
void SoundDriverBase::SetFrequency(uint32_t /*Frequency*/, uint32_t /*Divider*/)
{
}
@ -197,4 +197,4 @@ void SoundDriverBase::StartAudio()
void SoundDriverBase::StopAudio()
{
}
}