chenlh
2026-01-28 8758151dcdb0f89e362dd297405a384d3a034380
src/tg/module_def.h
@@ -37,8 +37,8 @@
typedef struct{
   unsigned short output_num; //8
   struct{
      unsigned short   channelID; //默认值:0,1,2...8
      unsigned short   mute;   //默认值:0
      unsigned short channelID; //默认值:0,1,2...8
      unsigned short mute;   //默认值:0
      short gain; //默认值:0
@@ -48,9 +48,9 @@
      short phase;
      short sensitivity;
      short     name[8]; //默认值:"1","2","3"..."8"
      short name[8]; //默认值:"1","2","3"..."8"
      short link ;
      unsigned short type ;
      unsigned short type;
   }output[MAX_OUTPUT_NUM];
}tag_output,*ptag_output;
@@ -72,7 +72,7 @@
typedef struct{
   unsigned short bypass;
   unsigned short q;
   unsigned short q_index;
   unsigned short nsections;
   struct {
      short gain;
@@ -314,6 +314,10 @@
}tag_echo,*ptag_echo;
typedef struct{
   short bypass;
   short name[8];
   short taps;
   int coeffs[MAX_FIR_TAPS];
}tag_fir, *ptag_fir;
typedef  struct{
@@ -325,15 +329,21 @@
typedef  struct{
   short proc_type;
   short pad;
   short proc_ins[sizeof(tag_eq)];
   char proc_ins[sizeof(tag_eq)];
}tag_module ,*ptag_module;
typedef struct{
   short proc_type;
   short pad;
   char proc_ins[sizeof(tag_fir)];
}tag_module_fir, *ptag_module_fir;
typedef  struct{
   short input_group[MAX_INPUT_NUM];
   short output_group[MAX_OUTPUT_NUM];
   int input_group[MAX_INPUT_NUM];
   int output_group[MAX_OUTPUT_NUM];
}tag_group,*ptag_group ;
// ENUM
typedef enum{
   INPUT_GAIN = 0x1,
   INPUT_MUTE,
@@ -573,4 +583,11 @@
   int pad;
}tag_dummy, *ptag_dummy;
typedef struct {
   short bOutput;   // 0: input channel; 1: output_channel
   short src_ch_index;   // From zero to start
   short dst_ch_index;   // From zero to start
   short pad;
}tag_ch_param_copy,*ptag_ch_param_copy;
#endif /* MODULE_DEF_H_ */