Documentation
    Preparing search index...

    Interface AudioServiceOptions

    Options for creating an audio service via createAudioService().

    const audioService = createAudioService({
    onChange: (sources) => console.log('Audio sources changed:', sources.size),
    });
    interface AudioServiceOptions {
        onChange?: (sources: ReadonlyMap<string, AudioSource>) => void;
    }
    Index

    Properties

    Properties

    onChange?: (sources: ReadonlyMap<string, AudioSource>) => void

    Called when the audio source registry changes (register, unregister, mute, state update). The shell host uses this to update UI.