Class libremidi_midi_configuration

java.lang.Object
dev.atsushieno.panama.libremidi.libremidi_midi_configuration

public class libremidi_midi_configuration extends Object
struct libremidi_midi_configuration {
    enum {
        MIDI1 = (1 << 1),
        MIDI1_RAW = (1 << 2),
        MIDI2 = (1 << 3),
        MIDI2_RAW = (1 << 4)
    } version;
    union in_or_out_port {
        libremidi_midi_in_port *in_port;
        libremidi_midi_out_port *out_port;
    } in_or_out_port;
    union on_midi_1_or_2_callback {
        libremidi_midi1_callback on_midi1_message;
        libremidi_midi1_callback on_midi1_raw_data;
        libremidi_midi2_callback on_midi2_message;
        libremidi_midi2_callback on_midi2_raw_data;
    } on_midi_1_or_2_callback;
    struct get_timestamp {
        void *context;
        libremidi_timestamp (*callback)(void *, libremidi_timestamp);
    } get_timestamp;
    struct libremidi_midi_configuration_on_error {
        void *context;
        void (*callback)(void *, const char *, size_t, const void *);
    } on_error;
    struct libremidi_midi_configuration_on_warning {
        void *context;
        void (*callback)(void *, const char *, size_t, const void *);
    } on_warning;
    const char *port_name;
    bool virtual_port;
    bool ignore_sysex;
    bool ignore_timing;
    bool ignore_sensing;
    enum libremidi_timestamp_mode timestamps;
}