ecspresso
    Preparing search index...

    Interface PlayOptions<Ch>

    Play options for fire-and-forget sound effects.

    interface PlayOptions<Ch extends string = string> {
        channel?: Ch;
        loop?: boolean;
        volume?: number;
    }

    Type Parameters

    • Ch extends string = string
    Index

    Properties

    channel?: Ch

    Channel to play on (uses first defined channel if omitted)

    loop?: boolean

    Whether to loop (default: false)

    volume?: number

    Individual volume (0-1, default: 1)