mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-31 16:03:24 +00:00
Fixed a special case (frequency/rate > repeating sample length)
svn-id: r25521
This commit is contained in:
parent
6b2d843680
commit
82e4318b02
@ -109,6 +109,9 @@ int Paula::readBuffer(int16 *buffer, const int numSamples) {
|
||||
|
||||
while (neededSamples > 0) {
|
||||
if (neededSamples >= (int) ((sLen - offset) / rate)) {
|
||||
while (rate > (sLen - offset))
|
||||
rate -= (sLen - offset);
|
||||
|
||||
end = (int)((sLen - offset) / rate);
|
||||
|
||||
for (int i = 0; i < end; i++)
|
||||
|
Loading…
x
Reference in New Issue
Block a user