8d2bdbe8165b34fbbd8e78e80b44e19dad654f3b
[processor-sdk/performance-audio-sr.git] / processor_audio_sdk_1_00_00_00 / pasdk / common / dbgCapAf.h
1 #ifndef _DBG_CAP_AFB_H_
2 #define _DBG_CAP_AFB_H_
4 #include <xdc/std.h>
6 #include "paftyp.h"
8 #define CAP_AF_SOK ( 0 )
9 #define CAP_AF_INV_CHNUM ( -1 )
11 // buffer capture parameters
12 #define CAP_AF_MAX_NUM_FRAME ( 5625 ) //( 100 )
13 #define CAP_AF_MAX_SAMP_PER_FRAME ( 256 )
14 #define CAP_AF_MAX_NUM_SAMP ( CAP_AF_MAX_NUM_FRAME * CAP_AF_MAX_SAMP_PER_FRAME )
16 extern PAF_AudioData gCapAfBuf[CAP_AF_MAX_NUM_SAMP];
17 extern Int32 gCapAfBufIdx;
19 // Reset audio frame capture buffer
20 Int capAfReset(Void);
22 // Write audio frame to capture buffer
23 Int capAfWrite(
24 PAF_AudioFrame *pAf, // audio frame
25 Int8 chNum // channel number to capture
26 );
28 #endif /* _DBG_CAP_AFB_H_ */