]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/performance-audio-sr.git/blobdiff - processor_audio_sdk_1_00_00_00/pasdk/common/paf_decOpCircBuf.c
Several updates
[processor-sdk/performance-audio-sr.git] / processor_audio_sdk_1_00_00_00 / pasdk / common / paf_decOpCircBuf.c
index 565bea45b973000df3fbc878dc2fe5e30b38ee35..edd1d35479a7d83988601dd29e0b786cd32754bc 100644 (file)
@@ -60,7 +60,7 @@ 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
+    PAF_AST_DecOpCircBuf *pCb,  // decoder output circular buffer
     Int8 resetRwFlags           // whether to reset reader, writer, and empty flags
 )
 {
@@ -171,7 +171,7 @@ Int cbInit(
     
     // (***) FL: revisit
     // Write back circular buffer configuration
-    Cache_wb(pCb, sizeof(PAF_DecodeOpCircBuf), Cache_Type_ALLD, 0);
+    Cache_wb(pCb, sizeof(PAF_AST_DecOpCircBuf), Cache_Type_ALLD, 0);
     // Write back AF circular buffer
     Cache_wb(pCb->afCb, pCb->maxNumAfCb*sizeof(PAF_AudioFrame), Cache_Type_ALLD, 0);
     // Write back PCM data
@@ -197,7 +197,7 @@ Int cbInit(
 
 // Start writes to circular buffer
 Int cbWriteStart(
-    PAF_DecodeOpCircBuf *pCb    // decoder output circular buffer
+    PAF_AST_DecOpCircBuf *pCb   // decoder output circular buffer
 )
 {
     PAF_AudioFrame *pAfCb;
@@ -207,7 +207,7 @@ Int cbWriteStart(
     // (***) FL: revisit
     // Invalidate circular buffer configuration.
     // NOTE: Probably only a subset of this information needs to be updated.
-    Cache_inv(pCb, sizeof(PAF_DecodeOpCircBuf), Cache_Type_ALLD, 0);
+    Cache_inv(pCb, sizeof(PAF_AST_DecOpCircBuf), Cache_Type_ALLD, 0);
     Cache_wait();
     
     // Invalidate AF circular buffer
@@ -230,7 +230,7 @@ Int cbWriteStart(
     
     // (***) FL: revisit
     // Write back circular buffer configuration
-    Cache_wb(pCb, sizeof(PAF_DecodeOpCircBuf), Cache_Type_ALLD, 0);
+    Cache_wb(pCb, sizeof(PAF_AST_DecOpCircBuf), Cache_Type_ALLD, 0);
     Cache_wait();
 
     return PAF_DECOP_CB_SOK;
@@ -238,11 +238,11 @@ Int cbWriteStart(
 
 // Stop writes to circular buffer
 Int cbWriteStop(
-    PAF_DecodeOpCircBuf *pCb    // decoder output circular buffer
+    PAF_AST_DecOpCircBuf *pCb   // decoder output circular buffer
 )
 {
     // Invalidate circular buffer configuration
-    Cache_inv(pCb, sizeof(PAF_DecodeOpCircBuf), Cache_Type_ALLD, 0);
+    Cache_inv(pCb, sizeof(PAF_AST_DecOpCircBuf), Cache_Type_ALLD, 0);
     Cache_wait();
     
     // update flags
@@ -251,7 +251,7 @@ Int cbWriteStop(
 
     // (***) FL: revisit
     // Write back circular buffer configuration
-    Cache_wb(pCb, sizeof(PAF_DecodeOpCircBuf), Cache_Type_ALLD, 0);
+    Cache_wb(pCb, sizeof(PAF_AST_DecOpCircBuf), Cache_Type_ALLD, 0);
     Cache_wait();
     
     return PAF_DECOP_CB_SOK;
@@ -259,11 +259,11 @@ Int cbWriteStop(
 
 // Start reads from circular buffer
 Int cbReadStart(
-    PAF_DecodeOpCircBuf *pCb    // decoder output circular buffer
+    PAF_AST_DecOpCircBuf *pCb   // decoder output circular buffer
 )
 {
     // Invalidate circular buffer configuration
-    Cache_inv(pCb, sizeof(PAF_DecodeOpCircBuf), Cache_Type_ALLD, 0);
+    Cache_inv(pCb, sizeof(PAF_AST_DecOpCircBuf), Cache_Type_ALLD, 0);
     Cache_wait();
     
     // update flags
@@ -271,7 +271,7 @@ Int cbReadStart(
     
     // (***) FL: revisit
     // Write back circular buffer configuration
-    Cache_wb(pCb, sizeof(PAF_DecodeOpCircBuf), Cache_Type_ALLD, 0);
+    Cache_wb(pCb, sizeof(PAF_AST_DecOpCircBuf), Cache_Type_ALLD, 0);
     Cache_wait();
 
     return PAF_DECOP_CB_SOK;
@@ -279,11 +279,11 @@ Int cbReadStart(
 
 // Stop reads from circular buffer
 Int cbReadStop(
-    PAF_DecodeOpCircBuf *pCb    // decoder output circular buffer
+    PAF_AST_DecOpCircBuf *pCb   // decoder output circular buffer
 )
 {
     // Invalidate circular buffer configuration
-    Cache_inv(pCb, sizeof(PAF_DecodeOpCircBuf), Cache_Type_ALLD, 0);
+    Cache_inv(pCb, sizeof(PAF_AST_DecOpCircBuf), Cache_Type_ALLD, 0);
     Cache_wait();
     
     // update flags
@@ -291,7 +291,7 @@ Int cbReadStop(
     
     // (***) FL: revisit
     // Write back circular buffer configuration
-    Cache_wb(pCb, sizeof(PAF_DecodeOpCircBuf), Cache_Type_ALLD, 0);
+    Cache_wb(pCb, sizeof(PAF_AST_DecOpCircBuf), Cache_Type_ALLD, 0);
     Cache_wait();
 
     return PAF_DECOP_CB_SOK;
@@ -299,7 +299,7 @@ Int cbReadStop(
 
 // Read audio frame from circular buffer
 Int cbReadAf(
-    PAF_DecodeOpCircBuf *pCb,   // decoder output circular buffer
+    PAF_AST_DecOpCircBuf *pCb,  // decoder output circular buffer
     PAF_AudioFrame *pAfRd       // audio frame into which to read
 )
 {
@@ -310,7 +310,7 @@ Int cbReadAf(
 
     // (***) FL: revisit
     // Invalidate circular buffer configuration.
-    Cache_inv(pCb, sizeof(PAF_DecodeOpCircBuf), Cache_Type_ALLD, 0);
+    Cache_inv(pCb, sizeof(PAF_AST_DecOpCircBuf), Cache_Type_ALLD, 0);
     Cache_wait();
 
     if ((pCb->writerActiveFlag == 1) && (pCb->emptyFlag == 1))
@@ -347,7 +347,7 @@ Int cbReadAf(
             //SW_BREAKPOINT; // FL: debug
             
             // Write back circular buffer configuration.
-            Cache_wb(pCb, sizeof(PAF_DecodeOpCircBuf), Cache_Type_ALLD, 0);
+            Cache_wb(pCb, sizeof(PAF_AST_DecOpCircBuf), Cache_Type_ALLD, 0);
             Cache_wait();    
             
             return PAF_DECOP_CB_READ_UNDERFLOW;
@@ -477,7 +477,7 @@ Int cbReadAf(
     // (***) FL: revisit
     // Write back circular buffer configuration.
     // NOTE: Probably only a subset of this information needs to be updated.
-    Cache_wb(pCb, sizeof(PAF_DecodeOpCircBuf), Cache_Type_ALLD, 0);
+    Cache_wb(pCb, sizeof(PAF_AST_DecOpCircBuf), Cache_Type_ALLD, 0);
     Cache_wait();    
         
     return PAF_DECOP_CB_SOK;
@@ -485,7 +485,7 @@ Int cbReadAf(
 
 // Write audio frame to circular buffer
 Int cbWriteAf(
-    PAF_DecodeOpCircBuf *pCb,   // decoder output circular buffer
+    PAF_AST_DecOpCircBuf *pCb,  // decoder output circular buffer
     PAF_AudioFrame *pAfWrt      // audio frame from which to write
 )
 {
@@ -497,7 +497,7 @@ Int cbWriteAf(
     // (***) FL: revisit
     // Invalidate circular buffer configuration.
     // NOTE: Probably only a subset of this information nexeds to be updated.
-    Cache_inv(pCb, sizeof(PAF_DecodeOpCircBuf), Cache_Type_ALLD, 0);
+    Cache_inv(pCb, sizeof(PAF_AST_DecOpCircBuf), Cache_Type_ALLD, 0);
     Cache_wait();
     
     if (pCb->readerActiveFlag == 1)
@@ -581,7 +581,7 @@ Int cbWriteAf(
 
         // (***) FL: revisit
         // Write back circular buffer configuration
-        Cache_wb(pCb, sizeof(PAF_DecodeOpCircBuf), Cache_Type_ALLD, 0);
+        Cache_wb(pCb, sizeof(PAF_AST_DecOpCircBuf), Cache_Type_ALLD, 0);
         // write back audio frame
         Cache_wb(pAfCb, sizeof(PAF_AudioFrame), Cache_Type_ALLD, 0);
         Cache_wb(pAfCb->data.samsiz, PAF_DECOP_CB_MAX_NUM_PCM_CH*sizeof(PAF_AudioSize), Cache_Type_ALLD, 0);
@@ -608,8 +608,8 @@ Int cbWriteAf(
 
 // Get next audio frame to write in circular buffer
 Int cbGetNextWriteAf(
-    PAF_DecodeOpCircBuf *pCb, // decoder output circular buffer
-    PAF_AudioFrame **ppAfWrt  // audio frame next to be written
+    PAF_AST_DecOpCircBuf *pCb, // decoder output circular buffer
+    PAF_AudioFrame **ppAfWrt   // audio frame next to be written
 )
 {
     // get pointer to current audio frame in circular buffer
@@ -627,7 +627,7 @@ Int cbGetNextWriteAf(
 
 // Output log of circular buffer control variables (debug)
 Int cbLog(
-    PAF_DecodeOpCircBuf *pCb,
+    PAF_AST_DecOpCircBuf *pCb,
     Int8 fullLog, 
     char *locInfo
 )
@@ -678,4 +678,4 @@ static Void cbReadAfMute(
         }
         pAfRd->data.samsiz[i] = 0;
     }
-}
\ No newline at end of file
+}