16.4. mf_set_buffer_size()
mf_set_buffer_size()
Defines a number of inactive MIDI events, that can be activated and edited
The size of the MIDI object edit buffer
Remarks
• Using the
mf_insert_event()
and
mf_remove_event()
technically activate or deactivate
events in the buffer.
• It is not possible to insert MIDI events without first setting a buffer size.
• The maximum buffer size is 1,000,000 events, including both active and inactive events.
• If this command is called outside of the init callback, it is asynchronous, and thus calls the
async_complete
callback.
• Inserting a MIDI event will decrease the buffer size by one. Removing an event will increase it
by one.
• Inserting a MIDI file will not affect the buffer.
See Also
mf_insert_file()
mf_get_buffer_size()
mf_reset()
Do'stlaringiz bilan baham: |