melonJS
    Preparing search index...

    Interface TrackOptions

    Options accepted by audio.playTrack in place of its volume argument.

    interface TrackOptions {
        sprite?: string;
        volume?: number;
    }
    Index
    sprite?: string

    Name of a region declared in the clip's sprite map: the track loops on that region instead of the whole clip. A region of a loop's exact length keeps it gapless where a decoder pads the end of the clip (Safari, on MP3).

    volume?: number

    Playback volume, 0.0..1.0. Defaults to the current global volume.