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

35 lines
854 B
C
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#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 ==》A 1bypass 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);
//returnoutput sample num
//int AudioResample(PcmInfo *Input,PcmInfo *Output);
//以InputA为基准输出通道数与InputA相同。返回值为output的sample数
int AudioMixFuc(PcmInfo *InputA,PcmInfo *InputB,PcmInfo *Output) ;
#endif