fix unlimited fps with tiny buffer
This commit is contained in:
parent
f57e2f6bf7
commit
2686c98a85
|
@ -38,6 +38,10 @@ void SoundDriverBase::AI_SetFrequency(uint32_t Frequency, uint32_t BufferSize)
|
||||||
{
|
{
|
||||||
SetFrequency(Frequency, BufferSize);
|
SetFrequency(Frequency, BufferSize);
|
||||||
m_MaxBufferSize = (BufferSize * 4);
|
m_MaxBufferSize = (BufferSize * 4);
|
||||||
|
if (g_settings->TinyBuffer() == true)
|
||||||
|
{
|
||||||
|
m_MaxBufferSize = m_MaxBufferSize * 2;
|
||||||
|
]
|
||||||
m_BufferRemaining = 0;
|
m_BufferRemaining = 0;
|
||||||
m_CurrentReadLoc = m_CurrentWriteLoc = m_BufferRemaining = 0;
|
m_CurrentReadLoc = m_CurrentWriteLoc = m_BufferRemaining = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue