pub struct MidiAudioThreadHandler { /* private fields */ }
Expand description

Audio-thread side of MIDI handling.

Pops MIDI events from the the MIDI queue & collects them on a pre-allocated fixed capacity vector.

Implementations

Get a reference to the message buffer

Push messages onto the buffer

This is real-time safe as long as MidiAudioThreadHandler::clear is called on every tick.

Clear the messages buffer. Must be called after collect_midi_messages on every tick.

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.