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
handle | The MIDI stream handle.
|
voices | Maximum number of samples to play at a time.
|
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.
See also
BASS_ATTRIB_MIDI_CHANS, BASS_ATTRIB_MIDI_CPU, BASS_ATTRIB_MIDI_VOICES_ACTIVE, BASS_CONFIG_MIDI_VOICES
BASS_ChannelGetAttribute, BASS_ChannelSetAttribute