mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Fix resuming streaming sources. Resolves issue #1362.
This commit is contained in:
@@ -967,7 +967,7 @@ void Source::resumeAtomic()
|
||||
alSourcePlay(source);
|
||||
|
||||
//failed to play or nothing to play
|
||||
if (alGetError() == AL_INVALID_VALUE || (sourceType == TYPE_STREAM && unusedBuffers.empty()))
|
||||
if (alGetError() == AL_INVALID_VALUE || (sourceType == TYPE_STREAM && (int) unusedBuffers.size() == buffers))
|
||||
stop();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user