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; |
---|
| 19 | |
---|
[185] | 20 | int midi_init (void); |
---|
| 21 | int midi_free (void); |
---|
| 22 | |
---|
| 23 | // cb = console beep |
---|
| 24 | int midi_cb_play(float t, float freq, int override); |
---|
[190] | 25 | int midi_cb_update (void); |
---|
[185] | 26 | int midi_cb_start(float freq); |
---|
| 27 | int midi_cb_stop (void); |
---|
| 28 | |
---|
[169] | 29 | #endif |
---|
| 30 | |
---|
| 31 | //ll |
---|
Note: See
TracBrowser
for help on using the repository browser.