Fixed a special case (frequency/rate > repeating sample length)

svn-id: r25521
This commit is contained in:
Sven Hesse 2007-02-12 12:54:08 +00:00
parent 6b2d843680
commit 82e4318b02

View File

@ -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++)