@onjmin/dtm
    Preparing search index...

    Type Alias MmlPlayback

    type MmlPlayback = {
        destroy: () => void;
        isPlaying: () => boolean;
        resume: () => Promise<void>;
        setVolume: (volume: number) => void;
        stop: () => void;
        suspend: () => Promise<void>;
    }
    Index

    Properties

    destroy: () => void

    停止し、内部生成 ctx なら閉じてリスナも解除する。

    isPlaying: () => boolean
    resume: () => Promise<void>

    suspend からの復帰。

    setVolume: (volume: number) => void

    マスタ音量を 0-100 で変更する(再生中も即時反映)。

    stop: () => void

    再生を止める(ループ中でも停止)。

    suspend: () => Promise<void>

    AudioContext を suspend(注入 ctx の場合、共有先も止まる点に注意)。