melonJS
    Preparing search index...

    Function rate

    Get or set the playback rate of a sound.

    Audio clip name (case-sensitive).

    Playback rate (0.5..4.0, where 1.0 is normal speed). Omit to read.

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

    The current playback rate 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 playback rate
    let rate = me.audio.rate("dst-gameforest");
    // speed it up 2×
    me.audio.rate("dst-gameforest", 2.0);