self:is_paused
Client
Checks whether the audio-2d stream is currently paused
Syntax
local result = self:is_paused()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
bool | result | true if the stream is paused, false otherwise |
Examples
local entity = core.audio_2d.create("sounds/ambient.ogg")
entity:play()
entity:set_paused(true)
if entity:is_paused() then
entity:set_paused(false)
end