Lines Matching refs:pC
96 M4READER_PCM_Context* pC = (M4READER_PCM_Context*)context;
99 M4OSA_DEBUG_IF1((M4OSA_NULL == pC), M4ERR_PARAMETER,
102 free(pC);
118 M4READER_PCM_Context* pC = (M4READER_PCM_Context*)context;
122 M4OSA_DEBUG_IF1((M4OSA_NULL == pC), M4ERR_PARAMETER,
127 err = M4PCMR_openRead(&(pC->m_coreContext), (M4OSA_Char*)pFileDescriptor,
128 pC->m_pOsaFileReaderFcts);
145 M4READER_PCM_Context* pC = (M4READER_PCM_Context*)context;
149 M4OSA_DEBUG_IF1((M4OSA_NULL == pC), M4ERR_PARAMETER,
153 if (M4OSA_NULL != pC->m_pAudioStream)
155 if (M4OSA_NULL != pC->m_audioAu.dataAddress)
157 err = M4PCMR_freeAU(pC->m_coreContext, pC->m_pAudioStream->m_streamId,
158 &pC->m_audioAu);
165 free(pC->m_pAudioStream);
166 pC->m_pAudioStream = M4OSA_NULL;
170 if (M4OSA_NULL != pC->m_coreContext)
173 err = M4PCMR_closeRead(pC->m_coreContext);
174 pC->m_coreContext = M4OSA_NULL;
199 M4READER_PCM_Context* pC = (M4READER_PCM_Context*)context;
203 M4OSA_DEBUG_IF1((M4OSA_NULL == pC), M4ERR_PARAMETER,
212 pC->m_pOsaFileReaderFcts = (M4OSA_FileReadPointer*)pValue;
305 M4READER_PCM_Context* pC=(M4READER_PCM_Context*)context;
314 M4OSA_DEBUG_IF1((pC == 0), M4ERR_PARAMETER,
321 err = M4PCMR_getNextStream( pC->m_coreContext, &streamDesc);
326 err = M4PCMR_startReading(pC->m_coreContext, streamIdArray); /*to put in open function*/
357 pC->m_pAudioStream = (M4_StreamHandler*)(pAudioStreamHandler);
384 pC->m_pAudioStream->m_duration = (M4OSA_Int32)fDuration;
385 pC->m_pAudioStream->m_pDecoderSpecificInfo = (M4OSA_UInt8*)(streamDesc.decoderSpecificInfo);
386 pC->m_pAudioStream->m_decoderSpecificInfoSize = streamDesc.decoderSpecificInfoSize;
387 pC->m_pAudioStream->m_streamId = streamDesc.streamID;
388 pC->m_pAudioStream->m_pUserData =
390 pC->m_pAudioStream->m_averageBitRate = streamDesc.averageBitrate;
391 pC->m_pAudioStream->m_maxAUSize =
394 pC->m_pAudioStream->m_streamType = M4DA_StreamTypeAudioPcm;
396 *pStreamHandler = pC->m_pAudioStream;
416 pC = (M4READER_PCM_Context*)context;
419 M4OSA_DEBUG_IF1((pC == 0), M4ERR_PARAMETER,
426 if (pStreamHandler == (M4_StreamHandler*)pC->m_pAudioStream)
428 pAu = &pC->m_audioAu;
466 M4READER_PCM_Context* pC = (M4READER_PCM_Context*)context;
472 M4OSA_DEBUG_IF1((pC == 0), M4ERR_PARAMETER, "M4READER_PCM_reset: invalid context");
476 if (pStreamHandler == (M4_StreamHandler*)pC->m_pAudioStream)
478 pAu = &pC->m_audioAu;
488 err = M4PCMR_freeAU(pC->m_coreContext, pStreamHandler->m_streamId, pAu);
504 err = M4PCMR_seek(pC->m_coreContext, streamIdArray, time64, M4SYS_kBeginning, &time64);
531 M4READER_PCM_Context* pC = (M4READER_PCM_Context*)context;
535 M4OSA_DEBUG_IF1((pC == 0), M4ERR_PARAMETER,
545 if (pStreamHandler == (M4_StreamHandler*)pC->m_pAudioStream)
547 pAu = &pC->m_audioAu;
557 err = M4PCMR_freeAU(pC->m_coreContext, pStreamHandler->m_streamId, pAu);
566 err = M4PCMR_nextAU(pC->m_coreContext, pStreamHandler->m_streamId, pAu);
604 M4READER_PCM_Context* pC = (M4READER_PCM_Context*)context;
610 M4OSA_DEBUG_IF1((pC == 0), M4ERR_PARAMETER, "M4READER_PCM_jump: invalid context");
617 if (pStreamHandler == pC->m_pAudioStream)
619 pAu = &pC->m_audioAu;
629 err = M4PCMR_freeAU(pC->m_coreContext, pStreamHandler->m_streamId, pAu);
644 err = M4PCMR_seek(pC->m_coreContext, streamIdArray, time64, M4SYS_kBeginning, &time64);