Line | |
---|
1 | //midi.h: |
---|
2 | |
---|
3 | #ifndef _MIDI_H_ |
---|
4 | #define _MIDI_H_ |
---|
5 | |
---|
6 | #include <roaraudio.h> |
---|
7 | |
---|
8 | #ifdef __linux__ |
---|
9 | #include <sys/ioctl.h> |
---|
10 | #include <linux/kd.h> |
---|
11 | #endif |
---|
12 | |
---|
13 | #define MIDI_CB_NOOVERRIDE 0 |
---|
14 | #define MIDI_CB_OVERRIDE 1 |
---|
15 | |
---|
16 | int g_console; |
---|
17 | |
---|
18 | uint32_t g_midi_cb_stoptime; |
---|
19 | int g_midi_cb_playing; |
---|
20 | |
---|
21 | |
---|
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); |
---|
27 | int midi_cb_update (void); |
---|
28 | int midi_cb_start(float freq); |
---|
29 | int midi_cb_stop (void); |
---|
30 | |
---|
31 | #endif |
---|
32 | |
---|
33 | //ll |
---|
Note: See
TracBrowser
for help on using the repository browser.