committed by
Joshua Granick
parent
151606b119
commit
195b1dbaef
@@ -294,9 +294,9 @@ class NativeAudioSource
|
|||||||
|
|
||||||
AL.sourceQueueBuffers(handle, numBuffers, buffers);
|
AL.sourceQueueBuffers(handle, numBuffers, buffers);
|
||||||
|
|
||||||
// OpenAL can unexpectedly stop playback if the buffers fill up,
|
// OpenAL can unexpectedly stop playback if the buffers run out
|
||||||
// which typically happens if an operation (such as resizing a
|
// of data, which typically happens if an operation (such as
|
||||||
// window) freezes the main thread.
|
// resizing a window) freezes the main thread.
|
||||||
// If AL is supposed to be playing but isn't, restart it here.
|
// If AL is supposed to be playing but isn't, restart it here.
|
||||||
if (playing && handle != null && AL.getSourcei(handle, AL.SOURCE_STATE) == AL.STOPPED){
|
if (playing && handle != null && AL.getSourcei(handle, AL.SOURCE_STATE) == AL.STOPPED){
|
||||||
AL.sourcePlay(handle);
|
AL.sourcePlay(handle);
|
||||||
|
|||||||
Reference in New Issue
Block a user