committed by
Joshua Granick
parent
151606b119
commit
195b1dbaef
@@ -294,9 +294,9 @@ class NativeAudioSource
|
||||
|
||||
AL.sourceQueueBuffers(handle, numBuffers, buffers);
|
||||
|
||||
// OpenAL can unexpectedly stop playback if the buffers fill up,
|
||||
// which typically happens if an operation (such as resizing a
|
||||
// window) freezes the main thread.
|
||||
// OpenAL can unexpectedly stop playback if the buffers run out
|
||||
// of data, which typically happens if an operation (such as
|
||||
// resizing a window) freezes the main thread.
|
||||
// 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){
|
||||
AL.sourcePlay(handle);
|
||||
|
||||
Reference in New Issue
Block a user