diff options
Diffstat (limited to 'apps/midi.h')
-rw-r--r-- | apps/midi.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/apps/midi.h b/apps/midi.h index 643dac8..cb3bd90 100644 --- a/apps/midi.h +++ b/apps/midi.h @@ -28,11 +28,21 @@ #include "mixer.h" +struct midi_struct; + typedef struct { + struct midi_struct* self_; + u_int8_t* buf_; + int len_; +} midi_done_data_t; + +struct midi_struct { snd_rawmidi_t* input_; u_int8_t buf_[3]; int read_idx_; -} midi_t; + midi_done_data_t done_data_[2]; +}; +typedef struct midi_struct midi_t; int midi_init(midi_t* m, const char* device); int midi_get_poll_fd_count(midi_t* m); |