[processor-sdk/performance-audio-sr.git] / processor_audio_sdk_1_00_00_00 / pasdk / common / paf_decOpCircBuf.h
diff --git a/processor_audio_sdk_1_00_00_00/pasdk/common/paf_decOpCircBuf.h b/processor_audio_sdk_1_00_00_00/pasdk/common/paf_decOpCircBuf.h
index 2e6808d9eb014f5e4351e001a6b0027f215373da..b7bcf6c3e1cec9e80b83776fade6975337d804c5 100644 (file)
Int8 writerActiveFlag; // flag indicates whether CB writer is active
Int8 readerActiveFlag; // flag indicates whether CB reader is active
Int8 emptyFlag; // flag indicates whether reader should empty (drain) remaining frames in CB
- //Int cbWriteAfInit; // indicates whether CB has been initialized for AF writes
+ Int8 errUndCnt; // underflow count
+ Int8 errOvrCnt; // overflow count
} PAF_DecodeOpCircBuf;
+// Initialize circular buffer
+Int cbInit(
+ Int8 sourceSelect, // source select (PCM, DDP, etc.)
+ Int16 decOpFrameLen, // decoder output frame length (PCM samples)
+ Int16 strFrameLen, // stream frame length (PCM samples)
+ PAF_DecodeOpCircBuf *pCb, // decoder output circular buffer
+ Int8 resetRwFlags // whether to reset reader, writer, and empty flags
+);
+
// Start writes to circular buffer
Int cbWriteStart(
PAF_DecodeOpCircBuf *pCb // decoder output circular buffer
// Output log of circular buffer control variables (debug)
Int cbLog(
PAF_DecodeOpCircBuf *pCb,
- Int8 fullLog
-);
-// restore read/write flags of the circular buffer. - QIN
-Int cbReadWriteRestore(
- PAF_DecodeOpCircBuf *pCb // decoder output circular buffer
+ Int8 fullLog,
+ char *locInfo
);
#endif /* _DEC_OP_CIRC_BUF_H_ */