Playback rate (0.5..4.0, where 1.0 is normal
speed). Omit to read.
Param: id
Sound instance ID. When omitted, all sounds in the group
are affected.
Returns
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).
Example
// read the current playback rate letrate = me.audio.rate("dst-gameforest"); // speed it up 2× me.audio.rate("dst-gameforest", 2.0);
Get or set the playback rate of a sound.
Param: sound_name
Audio clip name (case-sensitive).
Param: rate
Playback rate (
0.5..4.0, where1.0is normal speed). Omit to read.Param: id
Sound instance ID. When omitted, all sounds in the group are affected.
Returns
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).
Example