35 lines
854 B
C
35 lines
854 B
C
|
|
|||
|
#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
|