From fe4d335b54ede7a47fd4bcf5c228fb427cbcc8c9 Mon Sep 17 00:00:00 2001
From: chenlh <2008get@163.com>
Date: 星期二, 20 一月 2026 14:46:01 +0800
Subject: [PATCH] 新增通道参数拷贝功能

---
 src/tg/module_def.h |   28 +++++++++++++++++++---------
 1 files changed, 19 insertions(+), 9 deletions(-)

diff --git a/src/tg/module_def.h b/src/tg/module_def.h
index 8b0fd25..e51441e 100644
--- a/src/tg/module_def.h
+++ b/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,

--
Gitblit v1.9.3