From 703ab2a2d865ece47c13816fec7a28df1cd05746 Mon Sep 17 00:00:00 2001
From: graydon <weidong.gao@cretone.cn>
Date: 星期五, 25 七月 2025 10:19:48 +0800
Subject: [PATCH] initial》

---
 src/tob.cpp |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/tob.cpp b/src/tob.cpp
index 7de4099..3260cad 100644
--- a/src/tob.cpp
+++ b/src/tob.cpp
@@ -13,7 +13,7 @@
 #include "IModule.h"
 #include "f2f.h"
 #include "../drv/memory.h"
-#include "param_ctrl.h"
+
 
 //#define DEBUG
 #ifdef DEBUG
@@ -40,12 +40,14 @@
 	processed = ufalse;
 	mModuleNum =0;
 	mModuleIndex.resize(0);
+	paramset = new tg_param_ctrl_t();
 }
 
 ToB::~ToB()
 {
 	toClear();
 	tob = NULL;
+	delete paramset;
 }
 
 uvoid ToB::SetMute(ubool mute)
@@ -194,7 +196,7 @@
 	FlowChartHead* head = (FlowChartHead*)bin;
 	u32 size = sizeof(FlowChartHead);
 	u16 nPhyInput[IntDataType::COUNT] = { 0,0,0 }, nPhyOutput[IntDataType::COUNT] = { 0,0,0 };
-
+	s32 len =0;
 	frames = new Frames(head->dsp_buffer_num[dsp_index]);
 
 	do {
@@ -273,6 +275,7 @@
 		}
 
 		m->Init();
+		paramset->GetParamEntry(m->GetModuleType())(m, (uvoid*)pmod->mParamaddr, len);
 	} while (size < nbytes);
 
 	if (size != nbytes) {
@@ -343,7 +346,8 @@
 
 	IModule* m = mList[mModuleIndex[mID]-1];
 	if( m != NULL) {
-		m->Ctrl(pID, val, num);
+		///m->Ctrl(pID, val, num);
+		paramset->GetCtrlEntry(m->GetModuleType())(m, pID, (s16*)val);
 	}
 
 	return ErrStatus::SUCCESS;

--
Gitblit v1.9.3