SmartAudio/package/allwinner/resample/AC320/aumixcom.h

35 lines
854 B
C
Raw Normal View History

2018-07-13 01:31:50 +00:00
#ifndef ___aumixcommon__
#define ___aumixcommon__
typedef struct __PcmInfo__{
//input infor
unsigned int SampleRate;
short* PCMPtr;
unsigned int PcmLen;//sample num;
unsigned int Chan;
int preamp;//-20 -- 20 db
}PcmInfo;
typedef struct ___AudioMix__{
//input para
PcmInfo *InputA;
PcmInfo *InputB;
PcmInfo *TempBuf;
PcmInfo *Output;
unsigned int ByPassflag; //0: need mix A+B ==<3D><>A 1<><31>bypass A==>A
//output para
short* MixbufPtr;
unsigned int MixLen;
unsigned int Mixch;
void* RESI;
}AudioMix;
int do_AuMIX(AudioMix *AMX);
void* Init_ResampleInfo();
void Destroy_ResampleInfo(void * ri);
//return<72><6E>output sample num
//int AudioResample(PcmInfo *Input,PcmInfo *Output);
//<2F><>InputAΪ<41><CEAA>׼<EFBFBD><D7BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͨ<EFBFBD><CDA8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>InputA<74><41>ͬ<EFBFBD><CDAC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֵΪoutput<75><74>sample<6C><65>
int AudioMixFuc(PcmInfo *InputA,PcmInfo *InputB,PcmInfo *Output) ;
#endif