diff options
author | Joerg Mueller <nexyon@gmail.com> | 2016-11-28 19:23:44 +0300 |
---|---|---|
committer | Joerg Mueller <nexyon@gmail.com> | 2016-11-28 19:23:44 +0300 |
commit | 3340acd46b6bb4ab34f16b1dcd25850c92b353c4 (patch) | |
tree | 3a0547893fc657ce0085dcea5f9221815eff649f /intern/audaspace/FX | |
parent | 96ed2b0ce05ae46d81c38476133768d8b07fdc71 (diff) |
Fix T50065: Audaspace: some values of the lower limit of Factory.limit causes the factory not to play
Backport of upstream audaspace bugfix (ddd9a4d).
Diffstat (limited to 'intern/audaspace/FX')
-rw-r--r-- | intern/audaspace/FX/AUD_LimiterReader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/audaspace/FX/AUD_LimiterReader.cpp b/intern/audaspace/FX/AUD_LimiterReader.cpp index 9c1d4443b06..7d850ac7b5f 100644 --- a/intern/audaspace/FX/AUD_LimiterReader.cpp +++ b/intern/audaspace/FX/AUD_LimiterReader.cpp @@ -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) { |