Source:getFreeBufferCount

Available since LÖVE 11.0
This function is not supported in earlier versions.

Gets the number of free buffer slots in a queueable Source. If the queueable Source is playing, this value will increase up to the amount the Source was created with. If the queueable Source is stopped, it will process all of its internal buffers first, in which case this function will always return the amount it was created with.

Function

Synopsis

settings = Source:getFreeBufferCount( )

Arguments

None.

Returns

number buffers
How many more SoundData objects can be queued up.

See Also

Other Languages