BASS_ATTRIB_MIDI_VOICES attribute


The maximum number of samples to play at a time in a MIDI stream.

BASS_ChannelSetAttribute(
    HSTREAM handle,
    BASS_ATTRIB_MIDI_VOICES,
    float voices
);

Parameters

handleThe MIDI stream handle.
voicesThe number of voices... 1 (min) - 100000 (max).

Remarks

If there are currently more voices active than the new limit, then some voices will be killed to meet the limit. The number of voices currently active is available via the BASS_ATTRIB_MIDI_VOICES_ACTIVE attribute.

A MIDI stream will initially have a default number of voices as determined by the BASS_CONFIG_MIDI_VOICES config option.

Platform-specific

The maximum setting is 1000 on Android, iOS, and Windows CE.

See also

BASS_ATTRIB_MIDI_CHANS, BASS_ATTRIB_MIDI_CPU, BASS_ATTRIB_MIDI_VOICES_ACTIVE, BASS_CONFIG_MIDI_VOICES

BASS_ChannelGetAttribute, BASS_ChannelSetAttribute