ncmixer

ncurses audio mixer for DJ'ing
git clone git://git.2f30.org/ncmixer
Log | Files | Refs | README | LICENSE

proto.h (822B)


      1 enum {
      2 	SET_XF,
      3 	GET_XF,
      4 	SET_MON,
      5 	GET_MON,
      6 	SET_VOL,
      7 	GET_VOL,
      8 	GET_IN,
      9 	GET_OUT,
     10 	SET_AIR,
     11 	GET_AIR
     12 };
     13 
     14 struct msg {
     15 	int type;
     16 	union {
     17 		struct {
     18 			float pos;	/* in/out */
     19 		} xf;
     20 		struct {
     21 			int index;	/* in */
     22 			int on;		/* in/out */
     23 		} mon;
     24 		struct {
     25 			int chan;	/* in */
     26 			float level;	/* in/out */
     27 		} vol;
     28 		struct {
     29 			int index;	/* in */
     30 			int on;		/* out */
     31 		} input;
     32 		struct {
     33 			int index;	/* in */
     34 			int on;		/* out */
     35 		} output;
     36 		struct {
     37 			int on;		/* in/out */
     38 		} air;
     39 	} u;
     40 };
     41 #define m_xf_pos	u.xf.pos
     42 #define m_mon_index	u.mon.index
     43 #define m_mon_on	u.mon.on
     44 #define m_vol_chan	u.vol.chan
     45 #define m_vol_level	u.vol.level
     46 #define m_input_index	u.input.index
     47 #define m_input_on	u.input.on
     48 #define m_output_index	u.output.index
     49 #define m_output_on	u.output.on
     50 #define m_air_on	u.air.on