Small World Engine API Reference - v0.78.00
    Preparing search index...

    Interface SoundHandle

    A handle to an endlessly-looping/never-auto-stopping sound graph, returned so its caller can later tear it down. Unlike the one-shot playX() methods (which schedule their own stop() and rely on the Web Audio spec's automatic cleanup of ended, unreferenced source nodes), the graphs behind this handle never end on their own -- stop() is the only way to release them.

    interface SoundHandle {
        stop(): void;
    }
    Index
    • Stops every source node and disconnects the whole graph. Safe to call more than once.

      Returns void