jack_midi_event_write

Write an event into an event port buffer.

This function is simply a wrapper for @ref jack_midi_event_reserve which writes the event data into the space reserved in the buffer.

Clients must not write more than @a data_size bytes into this buffer. Clients must write normalised MIDI data to the port - no running status and no (1-byte) realtime messages interspersed with other messages (realtime messages are fine when they occur on their own, like other messages).

Events must be written in order, sorted by their sample offsets. JACK will not sort the events for you, and will refuse to store out-of-order events.

@param port_buffer Buffer to write event to. @param time Sample offset of event. @param data Message data to be written. @param data_size Length of @a data in bytes. @return 0 on success, ENOBUFS if there's not enough space in buffer for event.

extern (C)
int
jack_midi_event_write
(,
jack_nframes_t time
,,
size_t data_size
)

Meta