]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/performance-audio-sr.git/blobdiff - procsdk_audio_x_xx_xx_xx/test_dsp/framework/audioStreamInpProc.c
Added metadata support in circular buffering. Integrated AR and BMDA.
[processor-sdk/performance-audio-sr.git] / procsdk_audio_x_xx_xx_xx / test_dsp / framework / audioStreamInpProc.c
index c4e9b8c378cb15a19f1a84562502df3080cc0960..e91275a7c4a21f4ada96ad488a3630a9aebac084 100644 (file)
@@ -885,6 +885,12 @@ PAF_ASIT_initPhaseMalloc(
             }
             // allocate PCM sample buffer
             if (!(pC->xDec[z].decOpCb.pcmBuf = Memory_calloc((IHeap_Handle)HEAP_INTERNAL1_SHM, PAF_DECOP_CB_PCM_BUF_SZ * sizeof(PAF_AudioData), 4, &eb)))
+            {
+                TRACE_TERSE1("PAF_AST_initPhaseMalloc: AS%d: Memory_calloc failed", as+zMS);
+                SW_BREAKPOINT;
+            }
+               // allocate Metadata buffers //QIN
+            if (!(pC->xDec[z].decOpCb.metaBuf = Memory_calloc((IHeap_Handle)HEAP_INTERNAL1_SHM, PAF_DECOP_CB_MAX_NUM_AF * PAF_MAX_PRIVATE_MD_SZ * PAF_MAX_NUM_PRIVATE_MD * sizeof(Int8), 4, &eb)))
             {
                 TRACE_TERSE1("PAF_AST_initPhaseMalloc: AS%d: Memory_calloc failed", as+zMS);
                 SW_BREAKPOINT;
@@ -2338,6 +2344,7 @@ PAF_ASIT_decodeInit(
                 return errno;
 #endif
             
+            pC->xDec[z].decodeStatus.aspGearControl = 0;//QIN,  aspGearControl seems un-initialized
             gear = pC->xDec[z].decodeStatus.aspGearControl;
             pC->xDec[z].decodeStatus.aspGearStatus = gear < GEARS ? gear : 0;