natiny.audio.source_get_playing

Lua
natiny.audio.source_get_playing(source) -> playing

Reports whether a source is playing.

Parameters

Name Type Description
source number Source handle

Returns

Type Description
boolean true while the source is playing

Example

Lua
local playing = natiny.audio.source_get_playing(source)