mirror of
https://github.com/love2d/love.git
synced 2026-08-19 20:19:42 +02:00
Fix resuming streaming sources. Resolves issue #1362.
This commit is contained in:
@@ -967,7 +967,7 @@ void Source::resumeAtomic()
|
|||||||
alSourcePlay(source);
|
alSourcePlay(source);
|
||||||
|
|
||||||
//failed to play or nothing to play
|
//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();
|
stop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user