Reword comment for accuracy

Fixing a mistake I made in 0d1df40.
This commit is contained in:
Joseph Cloutier
2021-06-09 00:49:00 -04:00
committed by Joshua Granick
parent 151606b119
commit 195b1dbaef

View File

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