Fix T50065: Audaspace: some values of the lower limit of Factory.limit causes the factory not to play

Backport of upstream audaspace bugfix (ddd9a4d).
This commit is contained in:
Joerg Mueller 2016-11-28 17:23:44 +01:00
parent 96ed2b0ce0
commit 3340acd46b
Notes: blender-bot 2023-02-14 07:24:34 +01:00
Referenced by issue #50065, Audaspace: some values of the lower limit of Factory.limit causes the factory not to play
1 changed files with 2 additions and 2 deletions

View File

@ -110,10 +110,10 @@ void AUD_LimiterReader::read(int& length, bool& eos, sample_t* buffer)
eos = true;
}
if(position < m_start * rate)
if(position < int(m_start * rate))
{
int len2 = length;
for(int len = m_start * rate - position;
for(int len = int(m_start * rate) - position;
len2 == length && !eos;
len -= length)
{