self:get_playback_position
Client
Retrieves the current playback position of the audio-2d instance
Syntax
local result = self:get_playback_position()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
float | result | Current playback position in seconds |
Examples
local entity = core.audio_2d.create("sounds/ambient.ogg", true)
core.engine.print("info", "Playback position:", entity:get_playback_position())