]> icculus.org git repositories - btb/d2x.git/blob - arch/linux/include/music.h
add IPv4 multicasting support
[btb/d2x.git] / arch / linux / include / music.h
1 /* $Id: music.h,v 1.2 2003-03-13 00:20:21 btb Exp $ */
2
3 #include <unistd.h>
4
5 #define SEQ_DEV "/dev/sequencer"
6
7 #define PLAYING 0
8 #define STOPPED 1
9
10 typedef struct
11 {
12     int position;
13     int status;
14     int time;
15 } Track_info;
16
17 typedef struct
18 {
19     signed short note;
20     signed short channel;
21 } Voice_info;
22
23 void seqbuf_dump();
24 int seq_init();
25 void seq_close();
26 void set_program(int, int);
27 void start_note(int, int, int);
28 void stop_note(int, int, int);
29 void set_control(int, int, int);
30 void set_pitchbend(int, int);
31 void set_chn_pressure(int,int);
32 void set_key_pressure(int,int,int);
33 void play_hmi (void * arg);
34 void send_ipc(char *);
35 void kill_ipc();