BASS_ATTRIB_MIDI_QUEUE_TICK attribute
The size of a MIDI stream's tick-based event queue.
BASS_ChannelSetAttribute(
HSTREAM handle,
BASS_ATTRIB_MIDI_QUEUE_TICK,
float size
);
Parameters
| handle | The MIDI stream handle.
|
| size | The size of the queue in events. If this is below the number of events currently queued then it will be raised to that. This attribute is an integer (floating-point values will be truncated).
|
Remarks
This attribute is the size of buffer used to hold events that are waiting to be played, having been queued with tick positions via BASS_MIDI_StreamEvents. It will grow automatically when needed, but if you know that you will have a large number of queued events then this attribute can be used to preallocate a suitably large buffer to avoid reallocations during playback. The buffer can also be shrunk, but not below the number of events currently queued in it, which is available via the BASS_ATTRIB_MIDI_QUEUED_TICK attribute.
See also
BASS_MIDI_StreamEvents, BASS_ATTRIB_MIDI_QUEUE_ASYNC, BASS_ATTRIB_MIDI_QUEUE_BYTE
BASS_ChannelGetAttribute, BASS_ChannelSetAttribute