LibremidiFlutterBindings class

Bindings for src/libremidi_flutter.h.

Regenerate bindings with dart run ffigen --config ffigen.yaml.

Constructors

LibremidiFlutterBindings(DynamicLibrary dynamicLibrary)
The symbols are looked up in dynamicLibrary.
LibremidiFlutterBindings.fromLookup(Pointer<T> lookup<T extends NativeType>(String symbolName))
The symbols are looked up with lookup.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

lrm_get_version() Pointer<Char>
Get library version string
lrm_midi_in_close(Pointer<LrmMidiIn> midi_in) → void
Close and free a MIDI input
lrm_midi_in_is_connected(Pointer<LrmMidiIn> midi_in) bool
Check if input is connected
lrm_midi_in_open(Pointer<LrmObserver> observer, int port_index, LrmMidiCallback callback, Pointer<Void> context, bool receive_sysex, bool receive_timing, bool receive_sensing) Pointer<LrmMidiIn>
Open a MIDI input port by index The callback will be called on a background thread when messages arrive receive_sysex: if true, SysEx messages (F0..F7) are passed to callback receive_timing: if true, MIDI clock messages (F8) are passed to callback receive_sensing: if true, active sensing messages (FE) are passed to callback
lrm_midi_out_close(Pointer<LrmMidiOut> midi_out) → void
Close and free a MIDI output
lrm_midi_out_is_connected(Pointer<LrmMidiOut> midi_out) bool
Check if output is connected
lrm_midi_out_open(Pointer<LrmObserver> observer, int port_index) Pointer<LrmMidiOut>
Open a MIDI output port by index
lrm_midi_out_send(Pointer<LrmMidiOut> midi_out, Pointer<Uint8> data, int length) int
Send a MIDI message
lrm_observer_free(Pointer<LrmObserver> observer) → void
Free the observer
lrm_observer_get_input(Pointer<LrmObserver> observer, int index, Pointer<LrmPortInfo> info) int
Get input port info by index (returns 0 on success, fills info struct)
lrm_observer_get_input_count(Pointer<LrmObserver> observer) int
Get count of available input ports
lrm_observer_get_output(Pointer<LrmObserver> observer, int index, Pointer<LrmPortInfo> info) int
Get output port info by index (returns 0 on success, fills info struct)
lrm_observer_get_output_count(Pointer<LrmObserver> observer) int
Get count of available output ports
lrm_observer_new() Pointer<LrmObserver>
Create a new observer for enumerating MIDI ports
lrm_observer_new_with_callbacks(LrmHotplugCallback callback, Pointer<Void> context) Pointer<LrmObserver>
Create a new observer with hotplug callback
lrm_observer_refresh(Pointer<LrmObserver> observer) → void
Refresh port list
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited