melonJS
    Preparing search index...

    Function seek

    Get or set the playback position of a sound.

    Audio clip name (case-sensitive).

    Seek position in seconds. Omit to read.

    Sound instance ID. When omitted, all sounds in the group are affected.

    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).

    // read the current position of the background music
    let current_pos = me.audio.seek("dst-gameforest");
    // rewind the background music to the beginning
    me.audio.seek("dst-gameforest", 0);