Searched refs:pCntxt (Results 1 – 4 of 4) sorted by relevance
/frameworks/wilhelm/tests/examples/ |
D | slesTestDecodeToBuffQueue.cpp | 178 CallbackCntxt *pCntxt = (CallbackCntxt*)pContext; in DecPlayCallback() local 182 SLresult result = (*pCntxt->playItf)->GetPosition(pCntxt->playItf, &msec); in DecPlayCallback() 188 if (fwrite(pCntxt->pDataBase, 1, BUFFER_SIZE_IN_BYTES, gFp) < BUFFER_SIZE_IN_BYTES) { in DecPlayCallback() 195 pCntxt->pData += BUFFER_SIZE_IN_BYTES; in DecPlayCallback() 197 if (pCntxt->pData >= pCntxt->pDataBase + (NB_BUFFERS_IN_QUEUE * BUFFER_SIZE_IN_BYTES)) { in DecPlayCallback() 198 pCntxt->pData = pCntxt->pDataBase; in DecPlayCallback() 201 ExitOnError( (*queueItf)->Enqueue(queueItf, pCntxt->pDataBase, BUFFER_SIZE_IN_BYTES) ); in DecPlayCallback() 213 pCntxt->pData, decQueueState.count, decQueueState.index); in DecPlayCallback() 219 SLresult result = (*pCntxt->playItf)->GetDuration(pCntxt->playItf, &durationInMsec); in DecPlayCallback() 232 SLresult result = (*pCntxt->playItf)->GetPosition(pCntxt->playItf, &posMsec); in DecPlayCallback() [all …]
|
D | slesTestDecodeAac.cpp | 323 CallbackCntxt *pCntxt = (CallbackCntxt*)pContext; in DecPlayCallback() local 326 if (outputFp != NULL && fwrite(pCntxt->pData, 1, BUFFER_SIZE_IN_BYTES, outputFp) in DecPlayCallback() 333 res = (*queueItf)->Enqueue(queueItf, pCntxt->pData, BUFFER_SIZE_IN_BYTES); in DecPlayCallback() 337 pCntxt->pData += BUFFER_SIZE_IN_BYTES; in DecPlayCallback() 338 if (pCntxt->pData >= pCntxt->pDataBase + (NB_BUFFERS_IN_PCM_QUEUE * BUFFER_SIZE_IN_BYTES)) { in DecPlayCallback() 339 pCntxt->pData = pCntxt->pDataBase; in DecPlayCallback() 354 res = (*pCntxt->metaItf)->GetValue(pCntxt->metaItf, sampleRateKeyIndex, in DecPlayCallback() 361 res = (*pCntxt->metaItf)->GetValue(pCntxt->metaItf, channelCountKeyIndex, in DecPlayCallback() 364 res = (*pCntxt->metaItf)->GetValue(pCntxt->metaItf, bitsPerSampleKeyIndex, in DecPlayCallback() 367 res = (*pCntxt->metaItf)->GetValue(pCntxt->metaItf, containerSizeKeyIndex, in DecPlayCallback() [all …]
|
D | slesTestSawtoothBufferQueue.cpp | 90 CallbackCntxt *pCntxt = (CallbackCntxt*)pContext; in BufferQueueCallback() local 92 if(pCntxt->pData < (pCntxt->pDataBase + pCntxt->size)) in BufferQueueCallback() 95 res = (*queueItf)->Enqueue(queueItf, (void*) pCntxt->pData, in BufferQueueCallback() 99 pCntxt->pData += AUDIO_DATA_BUFFER_SIZE; in BufferQueueCallback()
|
D | slesTestRecBuffQueue.cpp | 119 CallbackCntxt *pCntxt = (CallbackCntxt*)pContext; in RecBufferQueueCallback() local 126 memcpy_to_i16_from_u8(temp, (const unsigned char *) pCntxt->pDataBase, in RecBufferQueueCallback() 131 (void) sf_writef_short(sndfile, (const short *) pCntxt->pDataBase, frameCount); in RecBufferQueueCallback() 134 (void) sf_writef_int(sndfile, (const int *) pCntxt->pDataBase, frameCount); in RecBufferQueueCallback() 137 (void) sf_writef_float(sndfile, (const float *) pCntxt->pDataBase, frameCount); in RecBufferQueueCallback() 145 pCntxt->pData += BUFFER_SIZE_IN_BYTES; in RecBufferQueueCallback() 147 if (pCntxt->pData >= pCntxt->pDataBase + (NB_BUFFERS_IN_QUEUE * BUFFER_SIZE_IN_BYTES)) { in RecBufferQueueCallback() 148 pCntxt->pData = pCntxt->pDataBase; in RecBufferQueueCallback() 151 ExitOnError( (*queueItf)->Enqueue(queueItf, pCntxt->pDataBase, BUFFER_SIZE_IN_BYTES) ); in RecBufferQueueCallback()
|