Lines Matching refs:pEASData
46 static EAS_RESULT LinearPCMDecode (EAS_DATA_HANDLE pEASData, S_PCM_STATE *pState);
47 static EAS_RESULT LinearPCMLocate (EAS_DATA_HANDLE pEASData, S_PCM_STATE *pState, EAS_I32 time);
108 static EAS_RESULT RenderPCMStream (S_EAS_DATA *pEASData, S_PCM_STATE *pState, EAS_I32 numSamples);
112 static S_PCM_STATE *FindSlot (S_EAS_DATA *pEASData, EAS_FILE_HANDLE fileHandle, EAS_PCM_CALLBACK pC…
113 static EAS_RESULT InitPCMStream (S_EAS_DATA *pEASData, S_PCM_STATE *pState);
131 EAS_RESULT EAS_PEInit (S_EAS_DATA *pEASData) in EAS_PEInit() argument
137 if (pEASData->staticMemoryModel) in EAS_PEInit()
138 pEASData->pPCMStreams = EAS_CMEnumData(EAS_CM_PCM_DATA); in EAS_PEInit()
141 … pEASData->pPCMStreams = EAS_HWMalloc(pEASData->hwInstData, sizeof(S_PCM_STATE) * MAX_PCM_STREAMS); in EAS_PEInit()
143 if (!pEASData->pPCMStreams) in EAS_PEInit()
150 EAS_HWMemSet((void *)(pEASData->pPCMStreams),0, sizeof(S_PCM_STATE) * MAX_PCM_STREAMS); in EAS_PEInit()
153 for (i = 0, pState = pEASData->pPCMStreams; i < MAX_PCM_STREAMS; i++, pState++) in EAS_PEInit()
175 EAS_RESULT EAS_PEShutdown (S_EAS_DATA *pEASData) in EAS_PEShutdown() argument
179 if (!pEASData->staticMemoryModel) in EAS_PEShutdown()
181 if (pEASData->pPCMStreams) in EAS_PEShutdown()
183 EAS_HWFree(pEASData->hwInstData, pEASData->pPCMStreams); in EAS_PEShutdown()
184 pEASData->pPCMStreams = NULL; in EAS_PEShutdown()
206 EAS_RESULT EAS_PERender (S_EAS_DATA* pEASData, EAS_I32 numSamples) in EAS_PERender() argument
213 for (i = 0, pState = pEASData->pPCMStreams; i < MAX_PCM_STREAMS; i++, pState++) in EAS_PERender()
216 if ((result = RenderPCMStream(pEASData, pState, numSamples)) != EAS_SUCCESS) in EAS_PERender()
244 EAS_RESULT EAS_PEState (S_EAS_DATA *pEASData, EAS_PCM_HANDLE pInstData, EAS_STATE *pState) in EAS_PEState() argument
268 EAS_RESULT EAS_PEClose (S_EAS_DATA *pEASData, EAS_PCM_HANDLE pState) in EAS_PEClose() argument
272 if ((result = EAS_HWCloseFile(pEASData->hwInstData, pState->fileHandle)) != EAS_SUCCESS) in EAS_PEClose()
296 EAS_RESULT EAS_PEReset (S_EAS_DATA *pEASData, EAS_PCM_HANDLE pState) in EAS_PEReset() argument
301 …if ((result = EAS_HWFileSeek(pEASData->hwInstData, pState->fileHandle, pState->startPos)) != EAS_S… in EAS_PEReset()
308 return InitPCMStream(pEASData, pState); in EAS_PEReset()
327 EAS_RESULT EAS_PEOpenStream (S_EAS_DATA *pEASData, S_PCM_OPEN_PARAMS *pParams, EAS_PCM_HANDLE *pHan… in EAS_PEOpenStream() argument
346 …if ((pState = FindSlot(pEASData, pParams->fileHandle, pParams->pCallbackFunc, pParams->cbInstData)… in EAS_PEOpenStream()
353 if ((result = EAS_HWFilePos(pEASData->hwInstData, pState->fileHandle, &filePos)) != EAS_SUCCESS) in EAS_PEOpenStream()
385 if ((result = InitPCMStream(pEASData, pState)) != EAS_SUCCESS) in EAS_PEOpenStream()
412 EAS_RESULT EAS_PEContinueStream (S_EAS_DATA *pEASData, EAS_PCM_HANDLE pState, EAS_I32 size) in EAS_PEContinueStream() argument
439 EAS_RESULT EAS_PEGetFileHandle (S_EAS_DATA *pEASData, EAS_PCM_HANDLE pState, EAS_FILE_HANDLE *pFile… in EAS_PEGetFileHandle() argument
470 EAS_RESULT EAS_PEUpdateParams (S_EAS_DATA* pEASData, EAS_PCM_HANDLE pState, EAS_I16 pitch, EAS_I16 … in EAS_PEUpdateParams() argument
496 EAS_RESULT EAS_PELocate (S_EAS_DATA *pEASData, EAS_PCM_HANDLE pState, EAS_I32 time) in EAS_PELocate() argument
501 return pState->pDecoder->pfLocate(pEASData, pState, time); in EAS_PELocate()
527 EAS_RESULT EAS_PEUpdateVolume (S_EAS_DATA* pEASData, EAS_PCM_HANDLE pState, EAS_I16 volume) in EAS_PEUpdateVolume() argument
546 EAS_RESULT EAS_PEUpdatePitch (S_EAS_DATA* pEASData, EAS_PCM_HANDLE pState, EAS_I16 pitch) in EAS_PEUpdatePitch() argument
571 EAS_RESULT EAS_PEPause (S_EAS_DATA *pEASData, EAS_PCM_HANDLE pState) in EAS_PEPause() argument
598 EAS_RESULT EAS_PEResume (S_EAS_DATA *pEASData, EAS_PCM_HANDLE pState) in EAS_PEResume() argument
745 EAS_RESULT EAS_PERelease (S_EAS_DATA *pEASData, EAS_PCM_HANDLE pState) in EAS_PERelease() argument
790 static S_PCM_STATE *FindSlot (S_EAS_DATA *pEASData, EAS_FILE_HANDLE fileHandle, EAS_PCM_CALLBACK pC… in FindSlot() argument
803 for (i = 0, pState = pEASData->pPCMStreams; i < MAX_PCM_STREAMS; i++, pState++) in FindSlot()
858 pState = &pEASData->pPCMStreams[i]; in FindSlot()
922 static EAS_RESULT InitPCMStream (S_EAS_DATA *pEASData, S_PCM_STATE *pState) in InitPCMStream() argument
953 return (*pState->pDecoder->pfInit)(pEASData, pState); in InitPCMStream()
973 static EAS_RESULT RenderPCMStream (S_EAS_DATA *pEASData, S_PCM_STATE *pState, EAS_I32 numSamples) in RenderPCMStream() argument
1132 pOut = pEASData->pMixBuffer; in RenderPCMStream()
1192 (*pState->pCallback)(pEASData, pState->cbInstData, pState, EAS_STATE_EMPTY); in RenderPCMStream()
1197 if ((result = (*pState->pDecoder->pfDecodeSample)(pEASData, pState)) != EAS_SUCCESS) in RenderPCMStream()
1220 (*pState->pCallback)(pEASData, pState->cbInstData, pState, pState->state); in RenderPCMStream()
1230 (*pState->pCallback)(pEASData, pState->cbInstData, pState, pState->state); in RenderPCMStream()
1255 static EAS_RESULT LinearPCMDecode (EAS_DATA_HANDLE pEASData, S_PCM_STATE *pState) in LinearPCMDecode() argument
1260 hwInstData = ((S_EAS_DATA*) pEASData)->hwInstData; in LinearPCMDecode()
1265 …if ((result = EAS_HWFileSeek(pEASData->hwInstData, pState->fileHandle, (EAS_I32) (pState->startPos… in LinearPCMDecode()
1354 static EAS_RESULT LinearPCMLocate (EAS_DATA_HANDLE pEASData, S_PCM_STATE *pState, EAS_I32 time) in LinearPCMLocate() argument
1401 if ((result = EAS_PESeek(pEASData, pState, &temp)) != EAS_SUCCESS) in LinearPCMLocate()
1427 EAS_RESULT EAS_PESeek (S_EAS_DATA *pEASData, S_PCM_STATE *pState, EAS_I32 *pLocation) in EAS_PESeek() argument
1432 …if ((result = EAS_HWFileSeek(pEASData->hwInstData, pState->fileHandle, pState->startPos)) != EAS_S… in EAS_PESeek()
1444 …if ((result = EAS_HWFileSeekOfs(pEASData->hwInstData, pState->fileHandle, pState->bytesLeft)) != E… in EAS_PESeek()
1455 (*pState->pCallback)(pEASData, pState->cbInstData, pState, EAS_STATE_EMPTY); in EAS_PESeek()
1468 …if ((result = EAS_HWFileSeekOfs(pEASData->hwInstData, pState->fileHandle, *pLocation)) != EAS_SUCC… in EAS_PESeek()