Rev | Line | |
---|
[169] | 1 | //midi.h: |
---|
| 2 | |
---|
| 3 | #ifndef _MIDI_H_ |
---|
| 4 | #define _MIDI_H_ |
---|
| 5 | |
---|
| 6 | #include <roaraudio.h> |
---|
| 7 | |
---|
[188] | 8 | #ifdef __linux__ |
---|
| 9 | #include <sys/ioctl.h> |
---|
| 10 | #include <linux/kd.h> |
---|
| 11 | #endif |
---|
| 12 | |
---|
[189] | 13 | #define MIDI_CB_NOOVERRIDE 0 |
---|
| 14 | #define MIDI_CB_OVERRIDE 1 |
---|
| 15 | |
---|
[185] | 16 | int g_console; |
---|
| 17 | |
---|
[189] | 18 | uint32_t g_midi_cb_stoptime; |
---|
[192] | 19 | int g_midi_cb_playing; |
---|
| 20 | |
---|
[189] | 21 | |
---|
[185] | 22 | int midi_init (void); |
---|
| 23 | int midi_free (void); |
---|
| 24 | |
---|
| 25 | // cb = console beep |
---|
| 26 | int midi_cb_play(float t, float freq, int override); |
---|
[190] | 27 | int midi_cb_update (void); |
---|
[185] | 28 | int midi_cb_start(float freq); |
---|
| 29 | int midi_cb_stop (void); |
---|
| 30 | |
---|
[169] | 31 | #endif |
---|
| 32 | |
---|
| 33 | //ll |
---|
Note: See
TracBrowser
for help on using the repository browser.