@like2d/like
    Preparing search index...

    Interface Wave

    A decoded audio resource. Create with Audio.load.

    Pretends to be synchronous: you can play it before loading, and LĨKE will do its best to maintain timings.

    interface Wave {
        buffer?: AudioBuffer;
        error?: any;
        path: string;
        ready: Promise<void>;
        getDuration(): number | null;
        isReady(): boolean;
    }
    Index

    Methods

    Properties

    buffer?: AudioBuffer

    Escape hatch:

    • Yes you can see the underlying decoded buffer.
    • No you can't rely on this working the same way forever.
    error?: any
    path: string
    ready: Promise<void>