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

© 2006–2020 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/Source:getFreeBufferCount