Merge pull request #1394 from Frank-74/patch-2

Fix tabs/spaces, tiny buffer unlimited VI problem
This commit is contained in:
zilmar 2017-10-16 09:27:37 +11:00 committed by GitHub
commit 99131d1374
4 changed files with 40 additions and 36 deletions

View File

@ -38,6 +38,10 @@ void SoundDriverBase::AI_SetFrequency(uint32_t Frequency, uint32_t BufferSize)
{
SetFrequency(Frequency, BufferSize);
m_MaxBufferSize = (BufferSize * 4);
if (g_settings->TinyBuffer() == true)
{
m_MaxBufferSize = m_MaxBufferSize * 2;
]
m_BufferRemaining = 0;
m_CurrentReadLoc = m_CurrentWriteLoc = m_BufferRemaining = 0;
}