chenlh
2025-10-10 4003a3bfa8a12ce3927df1d67f65acd4395adab1
src/tob.cpp
@@ -200,7 +200,7 @@
   return    ErrStatus::SUCCESS;
}
#define DEBUG 0
#if 1//DEBUG
#if DEBUG
   const s8* type_string[ModuleType::PROC_COUNT] = {
         "none"
         ,"input"
@@ -271,7 +271,8 @@
      if (pmod->mDsp != dsp_index)  continue;
#if DEBUG
      //if (PROC_FIR == pmod->mType)
//      if (1+320 == pmod->mID)
//      if (PROC_FEEDBACK == pmod->mType)
         printf("Module ID %d type %d %s rxnum %d txnum %d tag %d. \n",pmod->mID ,pmod->mType, type_string[pmod->mType], pmod->mRxNum,pmod->mTxNum,pmod->mTag);
#endif
@@ -319,7 +320,7 @@
               if(nPhyOutput[mPhyID[i].mIntType] < mPhyID[i].mPhyID)
                  nPhyOutput[mPhyID[i].mIntType] = mPhyID[i].mPhyID;
               //pcm = frames->AllocFrame(); // It is not necessary to be compatible with the AXE1208 series here, because the TOP architecture is different.
               pcm = frames->AllocFrame(); // It is not necessary to be compatible with the AXE1208 series here, because the TOP architecture is different.
               m->SetOutputChannelDataPtr(i, pcm);
               SetTxChannelPtr(static_cast<IntDataType>(mPhyID[i].mIntType), mPhyID[i].mPhyID-1, pcm->Data());
//               printf("mID %d,bid %d\n", pmod->mID, mPhyID[i].mPhyID-1);
@@ -399,7 +400,7 @@
{
   if(processed) {
      for (auto iter = mList.begin(); iter < mList.end(); iter++) {
//         if(((*iter)->GetModuleType() >= 6) && ((*iter)->GetModuleType() <= 6)) {
//         if(((*iter)->GetModuleType() >= PROC_FEEDBACK) && ((*iter)->GetModuleType() <= PROC_FEEDBACK)) {
//            printf("%d ", (*iter)->GetModuleID());
            (*iter)->Proc();
//         }
@@ -453,6 +454,11 @@
   }
   IModule* m = mList[mModuleIndex[mID]-1];
//   if (m->GetModuleType() == PROC_CONTINUNOUS_SPL && pID == 9) {
//      mID += 320;
//      m = mList[mModuleIndex[mID]-1];
//   }
   if( m != NULL) {
//      m->Ctrl(pID, val, num);
      paramset->GetCtrlEntry(m->GetModuleType())(m, pID, (s16*)val, num);