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

    Interface MixerState

    The local listener's mixer: how loud each REMOTE participant plays for THIS user, in dB relative to the stream as received.

    Local only — it changes what this user hears, never what is sent, recorded, or heard by anyone else. A participant absent from the map plays at 0 dB through the direct path (no Web Audio); a chain is built only for a participant whose gain is not 0. Remembered per remote user id when persistDeviceChanges is on, so a teacher's balance for a regular student survives to the next lesson.

    const { gains, setGain } = useParticipantMixer();
    <Slider value={gains[userId] ?? 0} min={PARTICIPANT_GAIN_MIN_DB} max={PARTICIPANT_GAIN_MAX_DB}
    onChange={(_, db) => setGain(userId, db as number)} />
    interface MixerState {
        participantGainDb: Record<string, number>;
    }
    Index

    Properties

    participantGainDb: Record<string, number>

    Per remote user id → gain in dB (only non-zero entries are kept).