]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/performance-audio-sr.git/blob - procsdk_audio_x_xx_xx_xx/common/dbgCapAf.h
Fix capture buffer name
[processor-sdk/performance-audio-sr.git] / procsdk_audio_x_xx_xx_xx / 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_ */