Lines Matching refs:pState
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);
113 static EAS_RESULT InitPCMStream (S_EAS_DATA *pEASData, S_PCM_STATE *pState);
133 S_PCM_STATE *pState; in EAS_PEInit() local
153 for (i = 0, pState = pEASData->pPCMStreams; i < MAX_PCM_STREAMS; i++, pState++) in EAS_PEInit()
154 pState->fileHandle = NULL; in EAS_PEInit()
208 S_PCM_STATE *pState; in EAS_PERender() local
213 for (i = 0, pState = pEASData->pPCMStreams; i < MAX_PCM_STREAMS; i++, pState++) in EAS_PERender()
215 …if ((pState->fileHandle) && (pState->state != EAS_STATE_STOPPED) && (pState->state != EAS_STATE_PA… 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
247 *pState = pInstData->state; in EAS_PEState()
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()
275 pState->fileHandle = NULL; 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()
330 S_PCM_STATE *pState; in EAS_PEOpenStream() local
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()
356 pState->fileHandle = NULL; in EAS_PEOpenStream()
360 pState->pDecoder = decoders[pParams->decoder]; in EAS_PEOpenStream()
361 pState->startPos = filePos; in EAS_PEOpenStream()
362 pState->bytesLeftLoop = pState->byteCount = pParams->size; in EAS_PEOpenStream()
363 pState->loopStart = pParams->loopStart; in EAS_PEOpenStream()
364 pState->samplesTilLoop = (EAS_I32) pState->loopStart; in EAS_PEOpenStream()
365 pState->loopSamples = pParams->loopSamples; in EAS_PEOpenStream()
366 pState->samplesInLoop = 0; in EAS_PEOpenStream()
367 pState->blockSize = (EAS_U16) pParams->blockSize; in EAS_PEOpenStream()
368 pState->flags = pParams->flags; in EAS_PEOpenStream()
369 pState->envData = pParams->envData; in EAS_PEOpenStream()
370 pState->volume = pParams->volume; in EAS_PEOpenStream()
371 pState->sampleRate = (EAS_U16) pParams->sampleRate; in EAS_PEOpenStream()
374 pState->basefreq = (SRC_RATE_MULTIPLER * (EAS_U32) pParams->sampleRate) >> 15; in EAS_PEOpenStream()
377 pState->rateShift = 0; in EAS_PEOpenStream()
378 while (pState->basefreq > 32767) in EAS_PEOpenStream()
380 pState->basefreq = pState->basefreq >> 1; in EAS_PEOpenStream()
381 pState->rateShift++; in EAS_PEOpenStream()
385 if ((result = InitPCMStream(pEASData, pState)) != EAS_SUCCESS) in EAS_PEOpenStream()
388 *pHandle = pState; in EAS_PEOpenStream()
412 EAS_RESULT EAS_PEContinueStream (S_EAS_DATA *pEASData, EAS_PCM_HANDLE pState, EAS_I32 size) in EAS_PEContinueStream() argument
416 pState->bytesLeft += size; in EAS_PEContinueStream()
417 if (pState->bytesLeft > 0) in EAS_PEContinueStream()
418 pState->flags &= ~PCM_FLAGS_EMPTY; in EAS_PEContinueStream()
439 EAS_RESULT EAS_PEGetFileHandle (S_EAS_DATA *pEASData, EAS_PCM_HANDLE pState, EAS_FILE_HANDLE *pFile… in EAS_PEGetFileHandle() argument
441 *pFileHandle = pState->fileHandle; in EAS_PEGetFileHandle()
470 EAS_RESULT EAS_PEUpdateParams (S_EAS_DATA* pEASData, EAS_PCM_HANDLE pState, EAS_I16 pitch, EAS_I16 … in EAS_PEUpdateParams() argument
473 pState->gainLeft = gainLeft; in EAS_PEUpdateParams()
476 pState->gainRight = gainRight; in EAS_PEUpdateParams()
479 pState->pitch = pitch; in EAS_PEUpdateParams()
496 EAS_RESULT EAS_PELocate (S_EAS_DATA *pEASData, EAS_PCM_HANDLE pState, EAS_I32 time) in EAS_PELocate() argument
498 if (pState->pDecoder->pfLocate == NULL) in EAS_PELocate()
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
529 pState->volume = volume; in EAS_PEUpdateVolume()
546 EAS_RESULT EAS_PEUpdatePitch (S_EAS_DATA* pEASData, EAS_PCM_HANDLE pState, EAS_I16 pitch) in EAS_PEUpdatePitch() argument
548 pState->pitch = pitch; in EAS_PEUpdatePitch()
571 EAS_RESULT EAS_PEPause (S_EAS_DATA *pEASData, EAS_PCM_HANDLE pState) in EAS_PEPause() argument
574 pState->state = EAS_STATE_PAUSING; in EAS_PEPause()
598 EAS_RESULT EAS_PEResume (S_EAS_DATA *pEASData, EAS_PCM_HANDLE pState) in EAS_PEResume() argument
601 pState->state = EAS_STATE_PLAY; in EAS_PEResume()
745 EAS_RESULT EAS_PERelease (S_EAS_DATA *pEASData, EAS_PCM_HANDLE pState) in EAS_PERelease() argument
751 if (((pState->envData >> 24) & 0x0F)==0) in EAS_PERelease()
754 pState->envState = PCM_ENV_RELEASE; in EAS_PERelease()
755 utemp = ((pState->envData >> 20) & 0x0F); in EAS_PERelease()
756 pState->envScale = getDecayScale(utemp); //getReleaseScale(utemp); in EAS_PERelease()
761 pState->envState = PCM_ENV_SUSTAIN; in EAS_PERelease()
762 utemp = ((pState->envData >> 28) & 0x0F); in EAS_PERelease()
763 pState->envScale = getDecayScale(utemp); //getSustainScale(utemp); in EAS_PERelease()
767 if (pState->envScale > 505) in EAS_PERelease()
768 pState->envScale = 505; in EAS_PERelease()
793 S_PCM_STATE *pState; in FindSlot() local
803 for (i = 0, pState = pEASData->pPCMStreams; i < MAX_PCM_STREAMS; i++, pState++) in FindSlot()
806 if (pState->fileHandle == NULL) in FindSlot()
808 foundState = pState; in FindSlot()
817 if ((pState->state != EAS_STATE_STOPPING) && (pState->startOrder < startOrder)) in FindSlot()
820 stealState = pState; in FindSlot()
822 startOrder = pState->startOrder; in FindSlot()
825 if (pState->startOrder >= youngest) in FindSlot()
827 youngest = pState->startOrder; in FindSlot()
858 pState = &pEASData->pPCMStreams[i]; in FindSlot()
859 if (pState->fileHandle != NULL) in FindSlot()
862 pState->fileHandle = fileHandle; in FindSlot()
863 pState->pCallback = pCallbackFunc; in FindSlot()
864 pState->cbInstData = cbInstData; in FindSlot()
865 return pState; in FindSlot()
922 static EAS_RESULT InitPCMStream (S_EAS_DATA *pEASData, S_PCM_STATE *pState) in InitPCMStream() argument
926 pState->bytesLeft = pState->byteCount; in InitPCMStream()
927 pState->phase = 0; in InitPCMStream()
928 pState->srcByte = 0; in InitPCMStream()
929 pState->decoderL.acc = 0; in InitPCMStream()
930 pState->decoderL.output = 0; in InitPCMStream()
931 pState->decoderL.x0 = pState->decoderL.x1 = 0; in InitPCMStream()
932 pState->decoderL.step = 0; in InitPCMStream()
933 pState->decoderR.acc = 0; in InitPCMStream()
934 pState->decoderR.output = 0; in InitPCMStream()
935 pState->decoderR.x0 = pState->decoderR.x1 = 0; in InitPCMStream()
936 pState->decoderR.step = 0; in InitPCMStream()
937 pState->hiNibble = EAS_FALSE; in InitPCMStream()
938 pState->pitch = 0; in InitPCMStream()
939 pState->blockCount = 0; in InitPCMStream()
940 pState->gainLeft = PCM_DEFAULT_GAIN_SETTING; in InitPCMStream()
942 pState->envValue = 0; in InitPCMStream()
943 pState->envState = PCM_ENV_START; in InitPCMStream()
946 pState->gainRight = PCM_DEFAULT_GAIN_SETTING; in InitPCMStream()
949 pState->state = EAS_STATE_READY; in InitPCMStream()
952 if (pState->pDecoder->pfInit) in InitPCMStream()
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
988 ((pState->envData >> 12) & 0x0F), in RenderPCMStream()
989 ((pState->envData >> 16) & 0x0F), in RenderPCMStream()
990 ((pState->envData >> 8) & 0x0F), in RenderPCMStream()
991 ((pState->envData >> 28) & 0x0F), in RenderPCMStream()
992 ((pState->envData >> 20) & 0x0F)); in RenderPCMStream()
995 if (pState->envState == PCM_ENV_START) in RenderPCMStream()
998 utemp = ((pState->envData >> 12) & 0x0F); in RenderPCMStream()
1004 pState->envValue = (32768<<7); in RenderPCMStream()
1006 utemp = ((pState->envData >> 16) & 0x0F); in RenderPCMStream()
1007 pState->envScale = getDecayScale(utemp); in RenderPCMStream()
1008 pState->envState = PCM_ENV_DECAY; in RenderPCMStream()
1009 pState->currentGainLeft = (EAS_I16) FMUL_15x15(pState->gainLeft, pState->volume); in RenderPCMStream()
1010 pState->currentGainRight = (EAS_I16) FMUL_15x15(pState->gainRight, pState->volume); in RenderPCMStream()
1016 pState->envValue = (2<<7); in RenderPCMStream()
1017 pState->currentGainLeft = 0; in RenderPCMStream()
1018 pState->currentGainRight = 0; in RenderPCMStream()
1020 pState->envScale = getAttackIncrement(utemp); in RenderPCMStream()
1022 pState->envState = PCM_ENV_ATTACK; in RenderPCMStream()
1025 if (pState->envState == PCM_ENV_ATTACK) in RenderPCMStream()
1029 pState->envValue = pState->envValue + (pState->envScale << 7); in RenderPCMStream()
1031 if (pState->envValue >= (32768<<7)) in RenderPCMStream()
1033 pState->envValue = (32768<<7); in RenderPCMStream()
1034 utemp = ((pState->envData >> 16) & 0x0F); in RenderPCMStream()
1035 pState->envScale = getDecayScale(utemp); in RenderPCMStream()
1036 pState->envState = PCM_ENV_DECAY; in RenderPCMStream()
1039 else if (pState->envState == PCM_ENV_DECAY) in RenderPCMStream()
1043 pState->envValue = (pState->envValue * pState->envScale)>>9; in RenderPCMStream()
1045 utemp = ((pState->envData >> 8) & 0x0F); in RenderPCMStream()
1052 if (pState->envValue <= utemp) in RenderPCMStream()
1054 utemp = ((pState->envData >> 28) & 0x0F); in RenderPCMStream()
1055 pState->envScale = getDecayScale(utemp); //getSustainScale(utemp); in RenderPCMStream()
1056 pState->envState = PCM_ENV_SUSTAIN; in RenderPCMStream()
1059 else if (pState->envState == PCM_ENV_SUSTAIN) in RenderPCMStream()
1063 pState->envValue = (pState->envValue * pState->envScale)>>9; in RenderPCMStream()
1065 if (pState->envValue <= (2<<7)) in RenderPCMStream()
1068 pState->envScale = 512; in RenderPCMStream()
1069 pState->envState = PCM_ENV_END; in RenderPCMStream()
1072 else if (pState->envState == PCM_ENV_RELEASE) in RenderPCMStream()
1076 pState->envValue = (pState->envValue * pState->envScale)>>9; in RenderPCMStream()
1078 if (pState->envValue <= (2<<7)) in RenderPCMStream()
1081 pState->envScale = 512; in RenderPCMStream()
1082 pState->envState = PCM_ENV_END; in RenderPCMStream()
1085 else if (pState->envState == PCM_ENV_END) in RenderPCMStream()
1089 pState->state = EAS_STATE_STOPPING; in RenderPCMStream()
1097 gainLeft = (EAS_I32) pState->currentGainLeft << SYNTH_UPDATE_PERIOD_IN_BITS; in RenderPCMStream()
1100 gainRight = (EAS_I32) pState->currentGainRight << SYNTH_UPDATE_PERIOD_IN_BITS; in RenderPCMStream()
1104 if ((pState->state == EAS_STATE_PAUSING) || (pState->state == EAS_STATE_PAUSED)) in RenderPCMStream()
1106 gainIncLeft = -pState->currentGainLeft; in RenderPCMStream()
1108 gainIncRight= -pState->currentGainRight; in RenderPCMStream()
1113 EAS_I32 gain = FMUL_15x15(pState->envValue >> 7, pState->volume); in RenderPCMStream()
1114 gainIncLeft = FMUL_15x15(pState->gainLeft, gain) - pState->currentGainLeft; in RenderPCMStream()
1116 gainIncRight = FMUL_15x15(pState->gainRight, gain) - pState->currentGainRight; in RenderPCMStream()
1121 phaseInc = pState->basefreq; in RenderPCMStream()
1124 if (pState->pitch) in RenderPCMStream()
1126 temp = EAS_Calculate2toX(pState->pitch); in RenderPCMStream()
1129 phaseInc = phaseInc << pState->rateShift; in RenderPCMStream()
1139 …pState->decoderL.output = pState->decoderL.x0 + FMUL_15x15((pState->decoderL.x1 - pState->decoderL… in RenderPCMStream()
1145 if (pState->flags & PCM_FLAGS_STEREO) in RenderPCMStream()
1146 …pState->decoderR.output = pState->decoderR.x0 + FMUL_15x15((pState->decoderR.x1 - pState->decoderR… in RenderPCMStream()
1150 …*pOut++ += (pState->decoderL.output * (gainLeft >> SYNTH_UPDATE_PERIOD_IN_BITS)) >> PCM_MIXER_GUAR… in RenderPCMStream()
1154 if (pState->flags & PCM_FLAGS_STEREO) in RenderPCMStream()
1155 …*pOut++ += (pState->decoderR.output * (gainRight >> SYNTH_UPDATE_PERIOD_IN_BITS)) >> PCM_MIXER_GUA… in RenderPCMStream()
1157 …*pOut++ += (pState->decoderL.output * (gainRight >> SYNTH_UPDATE_PERIOD_IN_BITS)) >> PCM_MIXER_GUA… in RenderPCMStream()
1164 if (pState->flags & PCM_FLAGS_STEREO) in RenderPCMStream()
1166 …pState->decoderR.output= pState->decoderR.x0 + FMUL_15x15((pState->decoderR.x1 - pState->decoderR.… in RenderPCMStream()
1170 …*pOut++ += ((pState->decoderL.output + pState->decoderR.output) * (gainLeft >> SYNTH_UPDATE_PERIOD… in RenderPCMStream()
1174 …*pOut++ += (pState->decoderL.output * (gainLeft >> SYNTH_UPDATE_PERIOD_IN_BITS)) >> PCM_MIXER_GUAR… in RenderPCMStream()
1180 pState->phase += phaseInc; in RenderPCMStream()
1183 while (pState->phase & ~PHASE_FRAC_MASK) in RenderPCMStream()
1185 pState->decoderL.x0 = pState->decoderL.x1; in RenderPCMStream()
1186 pState->decoderR.x0 = pState->decoderR.x1; in RenderPCMStream()
1189 if (!pState->bytesLeft && pState->pCallback && ((pState->flags & PCM_FLAGS_EMPTY) == 0)) in RenderPCMStream()
1191 pState->flags |= PCM_FLAGS_EMPTY; 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()
1201 pState->phase -= (1L << NUM_PHASE_FRAC_BITS); in RenderPCMStream()
1208 pState->currentGainLeft = (EAS_I16) (gainLeft >> SYNTH_UPDATE_PERIOD_IN_BITS); in RenderPCMStream()
1212 pState->currentGainRight = (EAS_I16) (gainRight >> SYNTH_UPDATE_PERIOD_IN_BITS); in RenderPCMStream()
1216 if (pState->state == EAS_STATE_PAUSING) in RenderPCMStream()
1218 pState->state = EAS_STATE_PAUSED; in RenderPCMStream()
1219 if (pState->pCallback) in RenderPCMStream()
1220 (*pState->pCallback)(pEASData, pState->cbInstData, pState, pState->state); in RenderPCMStream()
1224 if (pState->bytesLeft == 0 || pState->state == EAS_STATE_STOPPING) in RenderPCMStream()
1226 pState->state = EAS_STATE_STOPPED; in RenderPCMStream()
1229 if (pState->pCallback && pState->fileHandle) in RenderPCMStream()
1230 (*pState->pCallback)(pEASData, pState->cbInstData, pState, pState->state); in RenderPCMStream()
1233 if (pState->state == EAS_STATE_READY) in RenderPCMStream()
1234 pState->state = EAS_STATE_PLAY; in RenderPCMStream()
1255 static EAS_RESULT LinearPCMDecode (EAS_DATA_HANDLE pEASData, S_PCM_STATE *pState) in LinearPCMDecode() argument
1263 if ((pState->bytesLeft == 0) && (pState->loopSamples != 0)) in LinearPCMDecode()
1265 …((result = EAS_HWFileSeek(pEASData->hwInstData, pState->fileHandle, (EAS_I32) (pState->startPos + … in LinearPCMDecode()
1267 pState->bytesLeft = pState->byteCount = (EAS_I32) pState->bytesLeftLoop; in LinearPCMDecode()
1268 pState->flags &= ~PCM_FLAGS_EMPTY; in LinearPCMDecode()
1272 if (pState->bytesLeft) in LinearPCMDecode()
1276 if (pState->flags & PCM_FLAGS_8_BIT) in LinearPCMDecode()
1279 … if ((result = EAS_HWGetByte(hwInstData, pState->fileHandle, &pState->srcByte)) != EAS_SUCCESS) in LinearPCMDecode()
1283 if (pState->flags & PCM_FLAGS_UNSIGNED) in LinearPCMDecode()
1286 pState->decoderL.x1 = (EAS_PCM)(((EAS_PCM) pState->srcByte << 8) ^ 0x8000); in LinearPCMDecode()
1291 pState->decoderL.x1 = (EAS_PCM)((EAS_PCM) pState->srcByte << 8); in LinearPCMDecode()
1293 pState->bytesLeft--; in LinearPCMDecode()
1296 if(pState->flags & PCM_FLAGS_STEREO) in LinearPCMDecode()
1298 … if ((result = EAS_HWGetByte(hwInstData, pState->fileHandle, &pState->srcByte)) != EAS_SUCCESS) in LinearPCMDecode()
1302 if (pState->flags & PCM_FLAGS_UNSIGNED) in LinearPCMDecode()
1305 pState->decoderR.x1 = (EAS_PCM)(((EAS_PCM) pState->srcByte << 8) ^ 0x8000); in LinearPCMDecode()
1310 pState->decoderR.x1 = (EAS_PCM)((EAS_PCM) pState->srcByte << 8); in LinearPCMDecode()
1312 pState->bytesLeft--; in LinearPCMDecode()
1320 if (pState->flags & PCM_FLAGS_UNSIGNED) in LinearPCMDecode()
1326 …if ((result = EAS_HWGetWord(hwInstData, pState->fileHandle, &pState->decoderL.x1, EAS_FALSE)) != E… in LinearPCMDecode()
1328 pState->bytesLeft -= 2; in LinearPCMDecode()
1331 if(pState->flags & PCM_FLAGS_STEREO) in LinearPCMDecode()
1333 …if ((result = EAS_HWGetWord(hwInstData, pState->fileHandle, &pState->decoderR.x1, EAS_FALSE)) != E… in LinearPCMDecode()
1335 pState->bytesLeft -= 2; in LinearPCMDecode()
1342 pState->decoderL.x1 = pState->decoderR.x1 = 0; in LinearPCMDecode()
1354 static EAS_RESULT LinearPCMLocate (EAS_DATA_HANDLE pEASData, S_PCM_STATE *pState, EAS_I32 time) in LinearPCMLocate() argument
1362 if (pState->flags & PCM_FLAGS_8_BIT) in LinearPCMLocate()
1366 if (pState->flags & PCM_FLAGS_STEREO) in LinearPCMLocate()
1374 temp = (msecs * pState->sampleRate); in LinearPCMLocate()
1378 temp += secs * pState->sampleRate; in LinearPCMLocate()
1385 if (temp > (EAS_I32) pState->loopStart) in LinearPCMLocate()
1388 if (pState->loopSamples == 0) in LinearPCMLocate()
1390 pState->bytesLeft = 0; in LinearPCMLocate()
1391 pState->flags |= PCM_FLAGS_EMPTY; in LinearPCMLocate()
1396 while (temp > (EAS_I32) pState->loopStart) in LinearPCMLocate()
1397 temp -= (EAS_I32) pState->loopStart; in LinearPCMLocate()
1401 if ((result = EAS_PESeek(pEASData, pState, &temp)) != EAS_SUCCESS) in LinearPCMLocate()
1405 if ((pState->state != EAS_STATE_PAUSING) && (pState->state != EAS_STATE_PAUSED)) in LinearPCMLocate()
1406 pState->state = EAS_STATE_READY; 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()
1434 pState->state = EAS_STATE_ERROR; in EAS_PESeek()
1437 pState->bytesLeft = pState->bytesLeftLoop; in EAS_PESeek()
1440 while (*pLocation > (EAS_I32) pState->bytesLeft) in EAS_PESeek()
1444 …if ((result = EAS_HWFileSeekOfs(pEASData->hwInstData, pState->fileHandle, pState->bytesLeft)) != E… in EAS_PESeek()
1446 pState->state = EAS_STATE_ERROR; in EAS_PESeek()
1449 *pLocation -= pState->bytesLeft; in EAS_PESeek()
1450 pState->bytesLeft = 0; in EAS_PESeek()
1451 pState->flags |= PCM_FLAGS_EMPTY; in EAS_PESeek()
1454 if (pState->pCallback) in EAS_PESeek()
1455 (*pState->pCallback)(pEASData, pState->cbInstData, pState, EAS_STATE_EMPTY); in EAS_PESeek()
1460 if (pState->bytesLeft == 0) in EAS_PESeek()
1468 …if ((result = EAS_HWFileSeekOfs(pEASData->hwInstData, pState->fileHandle, *pLocation)) != EAS_SUCC… in EAS_PESeek()
1470 pState->state = EAS_STATE_ERROR; in EAS_PESeek()
1475 if (pState->flags & PCM_FLAGS_STREAMING) in EAS_PESeek()
1476 pState->bytesLeft = 0x7fffffff; in EAS_PESeek()
1478 pState->bytesLeft -= *pLocation; in EAS_PESeek()