From 8758151dcdb0f89e362dd297405a384d3a034380 Mon Sep 17 00:00:00 2001
From: chenlh <2008get@163.com>
Date: 星期三, 28 一月 2026 20:21:37 +0800
Subject: [PATCH] 天宫输入源模块设置时爆音及参数拷贝更新
---
src/tg/module_def.h | 35 ++++++++++++++++++++++++++---------
1 files changed, 26 insertions(+), 9 deletions(-)
diff --git a/src/tg/module_def.h b/src/tg/module_def.h
index 8b0fd25..0be5e11 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,
@@ -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_ */
--
Gitblit v1.9.3