Sound instance ID. When omitted, all sounds in the group
are affected.
Returns
The current seek position when called as a getter; nothing
when called as a setter (the Howl object Howler returns from the
setter form is an internal, not part of this API).
Example
// read the current position of the background music letcurrent_pos = me.audio.seek("dst-gameforest"); // rewind the background music to the beginning me.audio.seek("dst-gameforest", 0);
Get or set the playback position of a sound.
Param: sound_name
Audio clip name (case-sensitive).
Param: pos
Seek position in seconds. Omit to read.
Param: id
Sound instance ID. When omitted, all sounds in the group are affected.
Returns
The current seek position when called as a getter; nothing when called as a setter (the Howl object Howler returns from the setter form is an internal, not part of this API).
Example