Add GateMP for Decoder Output Circular Buffer
[processor-sdk/performance-audio-sr.git] / processor_audio_sdk_1_00_00_00 / pasdk / test_arm / framework / aspDecOpCircBuf_slave.h
index 2759e378a5b0011878ad5db6c6b4f122a3c9a4db..4e4dbf1433e028f515b011e8a01623ff506b7918 100644 (file)
@@ -40,28 +40,32 @@ All rights reserved.
 #include "paftyp.h"
 #include "aspDecOpCircBuf_common.h"
 
-#define ASP_DECOP_CB_WRITE_OVERFLOW         ( ASP_DECOP_CB_SOK-1 ) // error: write overflow
+#define ASP_DECOP_CB_WRITE_OVERFLOW         ( ASP_DECOP_CB_ERR_START-1 ) // error: write overflow
 
 // Start writes to circular buffer
 Int cbWriteStart(
-    PAF_AST_DecOpCircBuf *pCb   // decoder output circular buffer
+    PAF_AST_DecOpCircBufCtl *pCbCtl,    // decoder output circular buffer control
+    Int8 cbIdx                          // decoder output circular buffer index
 );
 
 // Stop writes to circular buffer
 Int cbWriteStop(
-    PAF_AST_DecOpCircBuf *pCb   // decoder output circular buffer
+    PAF_AST_DecOpCircBufCtl *pCbCtl,    // decoder output circular buffer control
+    Int8 cbIdx                          // decoder output circular buffer index
 );
 
 // Write audio frame to circular buffer
 Int cbWriteAf(
-    PAF_AST_DecOpCircBuf *pCb,  // decoder output circular buffer
-    PAF_AudioFrame *pAfWrt      // audio frame from which to write
+    PAF_AST_DecOpCircBufCtl *pCbCtl,    // decoder output circular buffer control
+    Int8 cbIdx,                         // decoder output circular buffer index
+    PAF_AudioFrame *pAfWrt              // audio frame from which to write
 );
 
 // Get next audio frame to write in circular buffer
 Int cbGetNextWriteAf(
-    PAF_AST_DecOpCircBuf *pCb,  // decoder output circular buffer
-    PAF_AudioFrame **ppAfWrt    // audio frame next to be written
+    PAF_AST_DecOpCircBufCtl *pCbCtl,    // decoder output circular buffer control
+    Int8 cbIdx,                         // decoder output circular buffer index
+    PAF_AudioFrame **ppAfWrt            // audio frame next to be written
 );
 
 #endif /* _ASP_DECOP_CB_SLAVE_H_ */