Hiyve Components - v1.0.0
    Preparing search index...

    Interface UseGameSoundsOptions

    Options for useGameSounds.

    interface UseGameSoundsOptions {
        enabled?: boolean;
        onError?: (error: Error) => void;
        samples?: SampleSource;
    }
    Index

    Properties

    enabled?: boolean

    Whether anything sounds (default: true)

    onError?: (error: Error) => void
    samples?: SampleSource

    Recorded piano samples for the notes, from a host laid out like the midi-js-soundfonts collection ({ baseUrl }); without them notes play on a small built-in voice. The SDK ships no samples: the app chooses the host, and that set's licence applies