/*
|
* audioproc.h
|
*
|
* Created on: 2021Äê11ÔÂ2ÈÕ
|
* Author: graydon
|
*/
|
|
#ifndef _AUDIOPROC_HH__
|
#define _AUDIOPROC_HH__
|
|
#include "typedefs.h"
|
#include "config.h"
|
#include "IModule.h"
|
#include "frames.h"
|
#include "ModuleExport.h"
|
#include "messageproc.h"
|
#include "protocol.h"
|
|
|
class ToB {
|
private :
|
std::vector<IModule*> mList;//Ä£¿éÁбí
|
std::vector<u16> mModuleIndex;
|
|
Frames* frames;
|
u32 dsp_index;
|
ubool dual_dsp;
|
ubool processed;
|
u16 mModuleNum;
|
u16 mLevelPacketNum ;
|
IModule* CreateBaseModule( u32 moduleType, u16 tag, u16 rxNum, u16 txNum);
|
public:
|
ToB(ubool dualDsp, u32 dspIndex);
|
~ToB();
|
static ToB* GetInstance();
|
uvoid SetMute(ubool mute);
|
ErrStatus toClear();
|
ErrStatus toProc();
|
ErrStatus toCtrl(u32 mID, u32 pID, const s16* val, u32 num);
|
ErrStatus toCtrl(const u8* bin , u32 nbytes);
|
ErrStatus CreateModule(const u8* bin, u32 nbytes);
|
u32 GetLevels(Message* handle , MSG* msg);
|
u32 GetModuleCPU(Message* handle , MSG* pmsg);
|
u16 GetModuleNum() {return mModuleNum;}
|
u16 GetLevelPacketNum() {return mLevelPacketNum;}
|
};
|
|
#endif
|