• Home
  • Raw
  • Download

Lines Matching refs:pEASData

87 static EAS_RESULT EAS_ParseEvents (S_EAS_DATA *pEASData, S_EAS_STREAM *pStream, EAS_U32 endTime, EA…
101 EAS_RESULT EAS_SetStreamParameter (S_EAS_DATA *pEASData, EAS_HANDLE pStream, EAS_I32 param, EAS_I32… in EAS_SetStreamParameter() argument
107 return (*pParserModule->pfSetData)(pEASData, pStream->handle, param, value); in EAS_SetStreamParameter()
123 EAS_RESULT EAS_GetStreamParameter (S_EAS_DATA *pEASData, EAS_HANDLE pStream, EAS_I32 param, EAS_I32… in EAS_GetStreamParameter() argument
129 return (*pParserModule->pfGetData)(pEASData, pStream->handle, param, pValue); in EAS_GetStreamParameter()
143 EAS_BOOL EAS_StreamReady (S_EAS_DATA *pEASData, EAS_HANDLE pStream) in EAS_StreamReady() argument
149 if (pParserModule->pfState(pEASData, pStream->handle, &state) != EAS_SUCCESS) in EAS_StreamReady()
164 EAS_RESULT EAS_IntSetStrmParam (S_EAS_DATA *pEASData, EAS_HANDLE pStream, EAS_INT param, EAS_I32 va… in EAS_IntSetStrmParam() argument
169 if (EAS_SetStreamParameter(pEASData, pStream, param, value) == EAS_SUCCESS) in EAS_IntSetStrmParam()
174 …if (EAS_GetStreamParameter(pEASData, pStream, PARSER_DATA_SYNTH_HANDLE, (EAS_I32*) &pSynth) != EAS… in EAS_IntSetStrmParam()
190 VMInitializeAllChannels(pEASData->pVoiceMgr, pSynth); in EAS_IntSetStrmParam()
200 return VMSetPolyphony(pEASData->pVoiceMgr, pSynth, value); in EAS_IntSetStrmParam()
203 return VMSetPriority(pEASData->pVoiceMgr, pSynth, value); in EAS_IntSetStrmParam()
230 EAS_RESULT EAS_IntGetStrmParam (S_EAS_DATA *pEASData, EAS_HANDLE pStream, EAS_INT param, EAS_I32 *p… in EAS_IntGetStrmParam() argument
235 if (EAS_GetStreamParameter(pEASData, pStream, param, pValue) == EAS_SUCCESS) in EAS_IntGetStrmParam()
240 …if (EAS_GetStreamParameter(pEASData, pStream, PARSER_DATA_SYNTH_HANDLE, (EAS_I32*) &pSynth) != EAS… in EAS_IntGetStrmParam()
249 return VMGetPolyphony(pEASData->pVoiceMgr, pSynth, pValue); in EAS_IntGetStrmParam()
252 return VMGetPriority(pEASData->pVoiceMgr, pSynth, pValue); in EAS_IntGetStrmParam()
282 static EAS_INT EAS_AllocateStream (EAS_DATA_HANDLE pEASData) in EAS_AllocateStream() argument
287 if (pEASData->staticMemoryModel) in EAS_AllocateStream()
289 if (pEASData->streams[0].handle != NULL) in EAS_AllocateStream()
299 if (pEASData->streams[streamNum].handle == NULL) in EAS_AllocateStream()
367 S_EAS_DATA *pEASData; in EAS_Init() local
381 pEASData = EAS_CMEnumData(EAS_CM_EAS_DATA); in EAS_Init()
383 pEASData = EAS_HWMalloc(pHWInstData, sizeof(S_EAS_DATA)); in EAS_Init()
384 if (!pEASData) in EAS_Init()
391 EAS_HWMemSet(pEASData, 0, sizeof(S_EAS_DATA)); in EAS_Init()
392 pEASData->staticMemoryModel = (EAS_BOOL8) staticMemoryModel; in EAS_Init()
393 pEASData->hwInstData = pHWInstData; in EAS_Init()
394 pEASData->renderTime = 0; in EAS_Init()
398 pEASData->searchHeaderFlag = EAS_TRUE; in EAS_Init()
402 EAS_SetVolume(pEASData, NULL, DEFAULT_VOLUME); in EAS_Init()
406 pEASData->pMetricsModule = EAS_CMEnumOptModules(EAS_MODULE_METRICS); in EAS_Init()
407 if (pEASData->pMetricsModule != NULL) in EAS_Init()
409 …if ((result = (*pEASData->pMetricsModule->pfInit)(pEASData, &pEASData->pMetricsData)) != EAS_SUCCE… in EAS_Init()
418 if ((result = VMInitialize(pEASData)) != EAS_SUCCESS) in EAS_Init()
422 if ((result = EAS_MixEngineInit(pEASData)) != EAS_SUCCESS) in EAS_Init()
431 pEASData->effectsModules[module].effect = EAS_CMEnumFXModules(module); in EAS_Init()
432 if (pEASData->effectsModules[module].effect != NULL) in EAS_Init()
434 …if ((result = (*pEASData->effectsModules[module].effect->pfInit)(pEASData, &pEASData->effectsModul… in EAS_Init()
443 if ((result = EAS_PEInit(pEASData)) != EAS_SUCCESS) in EAS_Init()
450 *ppEASData = pEASData; in EAS_Init()
469 EAS_PUBLIC EAS_RESULT EAS_Shutdown (EAS_DATA_HANDLE pEASData) in EAS_Shutdown() argument
472 if (!pEASData) in EAS_Shutdown()
476 EAS_HW_DATA_HANDLE hwInstData = pEASData->hwInstData; in EAS_Shutdown()
485 if (pEASData->streams[i].pParserModule && pEASData->streams[i].handle) in EAS_Shutdown()
487 …if ((result = (*((S_FILE_PARSER_INTERFACE*)(pEASData->streams[i].pParserModule))->pfClose)(pEASDat… in EAS_Shutdown()
496 if ((result = EAS_PEShutdown(pEASData)) != EAS_SUCCESS) in EAS_Shutdown()
504 if ((result = EAS_MixEngineShutdown(pEASData)) != EAS_SUCCESS) in EAS_Shutdown()
514 if (pEASData->effectsModules[i].effect) in EAS_Shutdown()
516 …if ((result = (*pEASData->effectsModules[i].effect->pfShutdown)(pEASData, pEASData->effectsModules… in EAS_Shutdown()
526 VMShutdown(pEASData); in EAS_Shutdown()
530 if (pEASData->pMetricsModule != NULL) in EAS_Shutdown()
532 …if ((result = (*pEASData->pMetricsModule->pfShutdown)(pEASData, pEASData->pMetricsData)) != EAS_SU… in EAS_Shutdown()
542 if (!pEASData->staticMemoryModel) in EAS_Shutdown()
543 EAS_HWFree(hwInstData, pEASData); in EAS_Shutdown()
566 EAS_RESULT EAS_OpenJETStream (EAS_DATA_HANDLE pEASData, EAS_FILE_HANDLE fileHandle, EAS_I32 offset,… in EAS_OpenJETStream() argument
574 if ((streamNum = EAS_AllocateStream(pEASData)) < 0) in EAS_OpenJETStream()
585 …if ((result = (*pParserModule->pfCheckFileType)(pEASData, fileHandle, &streamHandle, offset)) != E… in EAS_OpenJETStream()
594 EAS_InitStream(&pEASData->streams[streamNum], pParserModule, streamHandle); in EAS_OpenJETStream()
595 *ppStream = &pEASData->streams[streamNum]; in EAS_OpenJETStream()
620 EAS_PUBLIC EAS_RESULT EAS_OpenFile (EAS_DATA_HANDLE pEASData, EAS_FILE_LOCATOR locator, EAS_HANDLE … in EAS_OpenFile() argument
630 …if ((result = EAS_HWOpenFile(pEASData->hwInstData, locator, &fileHandle, EAS_FILE_READ)) != EAS_SU… in EAS_OpenFile()
634 if ((streamNum = EAS_AllocateStream(pEASData)) < 0) in EAS_OpenFile()
637 EAS_HWCloseFile(pEASData->hwInstData, fileHandle); in EAS_OpenFile()
651 …if ((result = (*pParserModule->pfCheckFileType)(pEASData, fileHandle, &streamHandle, 0L)) != EAS_S… in EAS_OpenFile()
654 EAS_HWCloseFile(pEASData->hwInstData, fileHandle); in EAS_OpenFile()
665 EAS_InitStream(&pEASData->streams[streamNum], pParserModule, streamHandle); in EAS_OpenFile()
666 *ppStream = &pEASData->streams[streamNum]; in EAS_OpenFile()
671 if ((result = EAS_HWFileSeek(pEASData->hwInstData, fileHandle, 0L)) != EAS_SUCCESS) in EAS_OpenFile()
674 EAS_HWCloseFile(pEASData->hwInstData, fileHandle); in EAS_OpenFile()
681 EAS_HWCloseFile(pEASData->hwInstData, fileHandle); in EAS_OpenFile()
704 EAS_PUBLIC EAS_RESULT EAS_MMAPIToneControl (EAS_DATA_HANDLE pEASData, EAS_FILE_LOCATOR locator, EAS… in EAS_MMAPIToneControl() argument
723 …if ((result = EAS_HWOpenFile(pEASData->hwInstData, locator, &fileHandle, EAS_FILE_READ)) != EAS_SU… in EAS_MMAPIToneControl()
727 if ((streamNum = EAS_AllocateStream(pEASData)) < 0) in EAS_MMAPIToneControl()
731 …if ((result = (*pParserModule->pfCheckFileType)(pEASData, fileHandle, &streamHandle, 0L)) != EAS_S… in EAS_MMAPIToneControl()
742 EAS_InitStream(&pEASData->streams[streamNum], pParserModule, streamHandle); in EAS_MMAPIToneControl()
743 *ppStream = &pEASData->streams[streamNum]; in EAS_MMAPIToneControl()
748 EAS_HWCloseFile(pEASData->hwInstData, fileHandle); in EAS_MMAPIToneControl()
763 EAS_PUBLIC EAS_RESULT EAS_GetWaveFmtChunk (S_EAS_DATA *pEASData, EAS_HANDLE pStream, EAS_VOID_PTR *… in EAS_GetWaveFmtChunk() argument
768 …if ((result = EAS_GetStreamParameter(pEASData, pStream, PARSER_DATA_FORMAT, &value)) != EAS_SUCCES… in EAS_GetWaveFmtChunk()
785 EAS_PUBLIC EAS_RESULT EAS_GetFileType (S_EAS_DATA *pEASData, EAS_HANDLE pStream, EAS_I32 *pFileType) in EAS_GetFileType() argument
787 if (!EAS_StreamReady (pEASData, pStream)) in EAS_GetFileType()
789 return EAS_GetStreamParameter(pEASData, pStream, PARSER_DATA_FILE_TYPE, pFileType); in EAS_GetFileType()
810 EAS_PUBLIC EAS_RESULT EAS_Prepare (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream) in EAS_Prepare() argument
821 result = pParserModule->pfState(pEASData, pStream->handle, &state); in EAS_Prepare()
828 result = (*pParserModule->pfPrepare)(pEASData, pStream->handle); in EAS_Prepare()
832 result = EAS_SetVolume(pEASData, pStream, pStream->volume); in EAS_Prepare()
859 EAS_PUBLIC EAS_RESULT EAS_Render (EAS_DATA_HANDLE pEASData, EAS_PCM *pOut, EAS_I32 numRequested, EA… in EAS_Render() argument
869 VMInitWorkload(pEASData->pVoiceMgr); in EAS_Render()
881 if (pEASData->pMetricsData) in EAS_Render()
882 (*pEASData->pMetricsModule->pfStartTimer)(pEASData->pMetricsData, EAS_PM_TOTAL_TIME); in EAS_Render()
887 if (VMStartFrame(pEASData)) in EAS_Render()
888 EAS_MixEnginePrep(pEASData, numRequested); in EAS_Render()
891 EAS_MixEnginePrep(pEASData, numRequested); in EAS_Render()
895 pEASData->pOutputAudioBuffer = pOut; in EAS_Render()
900 if (pEASData->pMetricsData) in EAS_Render()
901 (*pEASData->pMetricsModule->pfStartTimer)(pEASData->pMetricsData, EAS_PM_PARSE_TIME); in EAS_Render()
909 pEASData->streams[streamNum].streamFlags &= ~STREAM_FLAGS_LOCATE; in EAS_Render()
911 if (pEASData->streams[streamNum].pParserModule) in EAS_Render()
915 pParserModule = pEASData->streams[streamNum].pParserModule; in EAS_Render()
918 if (pEASData->streams[streamNum].streamFlags & STREAM_FLAGS_PAUSE) in EAS_Render()
921 result = pParserModule->pfPause(pEASData, pEASData->streams[streamNum].handle); in EAS_Render()
922 pEASData->streams[streamNum].streamFlags &= ~STREAM_FLAGS_PAUSE; in EAS_Render()
926 …if ((result = (*pParserModule->pfState)(pEASData, pEASData->streams[streamNum].handle, &parserStat… in EAS_Render()
932 if (pEASData->streams[streamNum].streamFlags & STREAM_FLAGS_RESUME) in EAS_Render()
935 … result = pParserModule->pfResume(pEASData, pEASData->streams[streamNum].handle); in EAS_Render()
936 pEASData->streams[streamNum].streamFlags &= ~STREAM_FLAGS_RESUME; in EAS_Render()
941 if ((pEASData->streams[streamNum].streamFlags & STREAM_FLAGS_PARSED) == 0) in EAS_Render()
942 …if ((result = EAS_ParseEvents(pEASData, &pEASData->streams[streamNum], pEASData->streams[streamNum… in EAS_Render()
946 if ((pEASData->streams[streamNum].streamFlags) == 0) in EAS_Render()
951 if (pEASData->pMetricsData) in EAS_Render()
952 … (*pEASData->pMetricsModule->pfStartTimer)(pEASData->pMetricsData, EAS_PM_TOTAL_TIME); in EAS_Render()
959 if (pEASData->streams[streamNum].repeatCount) in EAS_Render()
963 …if ((result = (*pParserModule->pfState)(pEASData, pEASData->streams[streamNum].handle, &parserStat… in EAS_Render()
969 if (pEASData->streams[streamNum].repeatCount > 0) in EAS_Render()
970 pEASData->streams[streamNum].repeatCount--; in EAS_Render()
973 …if ((result = (*pParserModule->pfReset)(pEASData, pEASData->streams[streamNum].handle)) != EAS_SUC… in EAS_Render()
975 pEASData->streams[streamNum].time = 0; in EAS_Render()
983 if (pEASData->pMetricsData) in EAS_Render()
984 (void)(*pEASData->pMetricsModule->pfStopTimer)(pEASData->pMetricsData, EAS_PM_PARSE_TIME); in EAS_Render()
989 if (pEASData->pMetricsData) in EAS_Render()
990 (*pEASData->pMetricsModule->pfStartTimer)(pEASData->pMetricsData, EAS_PM_RENDER_TIME); in EAS_Render()
994 …if ((result = VMRender(pEASData->pVoiceMgr, BUFFER_SIZE_IN_MONO_SAMPLES, pEASData->pMixBuffer, &vo… in EAS_Render()
1002 if (pEASData->pMetricsData) { in EAS_Render()
1003 … (*pEASData->pMetricsModule->pfIncrementCounter)(pEASData->pMetricsData, EAS_PM_FRAME_COUNT, 1); in EAS_Render()
1004 (void)(*pEASData->pMetricsModule->pfStopTimer)(pEASData->pMetricsData, EAS_PM_RENDER_TIME); in EAS_Render()
1005 …(*pEASData->pMetricsModule->pfIncrementCounter)(pEASData->pMetricsData, EAS_PM_TOTAL_VOICE_COUNT, … in EAS_Render()
1006 …(void)(*pEASData->pMetricsModule->pfRecordMaxValue)(pEASData->pMetricsData, EAS_PM_MAX_VOICES, (EA… in EAS_Render()
1013 if (pEASData->streams[streamNum].pParserModule != NULL) in EAS_Render()
1014 pEASData->streams[streamNum].streamFlags &= ~STREAM_FLAGS_PARSED; in EAS_Render()
1018 if (pEASData->pMetricsData) in EAS_Render()
1019 (*pEASData->pMetricsModule->pfStartTimer)(pEASData->pMetricsData, EAS_PM_STREAM_TIME); in EAS_Render()
1023 if ((result = EAS_PERender(pEASData, numRequested)) != EAS_SUCCESS) in EAS_Render()
1031 if (pEASData->pMetricsData) in EAS_Render()
1032 (void)(*pEASData->pMetricsModule->pfStopTimer)(pEASData->pMetricsData, EAS_PM_STREAM_TIME); in EAS_Render()
1037 if (pEASData->pMetricsData) in EAS_Render()
1038 (*pEASData->pMetricsModule->pfStartTimer)(pEASData->pMetricsData, EAS_PM_POST_TIME); in EAS_Render()
1043 if (VMEndFrame(pEASData)) in EAS_Render()
1046 EAS_MixEnginePost(pEASData, numRequested); in EAS_Render()
1051 EAS_MixEnginePost(pEASData, numRequested); in EAS_Render()
1057 if (pEASData->pMetricsData) in EAS_Render()
1058 (void)(*pEASData->pMetricsModule->pfStopTimer)(pEASData->pMetricsData, EAS_PM_POST_TIME); in EAS_Render()
1062 pEASData->renderTime += AUDIO_FRAME_LENGTH; in EAS_Render()
1066 if (pEASData->pVoiceMgr->workload) in EAS_Render()
1072 if (pEASData->pMetricsData) in EAS_Render()
1075 temp = (*pEASData->pMetricsModule->pfStopTimer)(pEASData->pMetricsData, EAS_PM_TOTAL_TIME); in EAS_Render()
1078 if ((*pEASData->pMetricsModule->pfRecordMaxValue) in EAS_Render()
1079 (pEASData->pMetricsData, EAS_PM_MAX_CYCLES, (EAS_U32) temp)) in EAS_Render()
1081 …(*pEASData->pMetricsModule->pfRecordValue)(pEASData->pMetricsData, EAS_PM_MAX_CYCLES_VOICES, (EAS_… in EAS_Render()
1082 …(*pEASData->pMetricsModule->pfRecordValue)(pEASData->pMetricsData, EAS_PM_MAX_CYCLES_TIME, (EAS_I3… in EAS_Render()
1089 if (pEASData->jetHandle != NULL) in EAS_Render()
1091 result = JET_Process(pEASData); in EAS_Render()
1122 EAS_PUBLIC EAS_RESULT EAS_SetRepeat (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream, EAS_I32 repeatCo… in EAS_SetRepeat() argument
1150 EAS_PUBLIC EAS_RESULT EAS_GetRepeat (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream, EAS_I32 *pRepeat… in EAS_GetRepeat() argument
1174 EAS_PUBLIC EAS_RESULT EAS_SetPlaybackRate (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream, EAS_U32 ra… in EAS_SetPlaybackRate() argument
1191 EAS_SetStreamParameter(pEASData, pStream, PARSER_DATA_PLAYBACK_RATE, (EAS_I32) rate); in EAS_SetPlaybackRate()
1214 EAS_PUBLIC EAS_RESULT EAS_SetTransposition (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream, EAS_I32 t… in EAS_SetTransposition() argument
1221 if (!EAS_StreamReady(pEASData, pStream)) in EAS_SetTransposition()
1223 return EAS_IntSetStrmParam(pEASData, pStream, PARSER_DATA_TRANSPOSITION, transposition); in EAS_SetTransposition()
1242 static EAS_RESULT EAS_ParseEvents (S_EAS_DATA *pEASData, EAS_HANDLE pStream, EAS_U32 endTime, EAS_I… in EAS_ParseEvents() argument
1264 … if ((result = (*pParserModule->pfState)(pEASData, pStream->handle, &parserState)) != EAS_SUCCESS) in EAS_ParseEvents()
1283 … if ((result = (*pParserModule->pfState)(pEASData, pStream->handle, &parserState)) != EAS_SUCCESS) in EAS_ParseEvents()
1297 … if ((result = (*pParserModule->pfTime)(pEASData, pStream->handle, &time)) != EAS_SUCCESS) in EAS_ParseEvents()
1306 if ((result = (*pParserModule->pfEvent)(pEASData, pStream->handle, parseMode)) in EAS_ParseEvents()
1335 if (VMCheckWorkload(pEASData->pVoiceMgr)) in EAS_ParseEvents()
1347 if (EAS_HWYield(pEASData->hwInstData)) in EAS_ParseEvents()
1378 EAS_PUBLIC EAS_RESULT EAS_ParseMetaData (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream, EAS_I32 *pla… in EAS_ParseMetaData() argument
1389 if ((result = (*pParserModule->pfState)(pEASData, pStream->handle, &state)) != EAS_SUCCESS) in EAS_ParseMetaData()
1396 return pParserModule->pfGetMetaData(pEASData, pStream->handle, playLength); in EAS_ParseMetaData()
1399 if ((result = (*pParserModule->pfReset)(pEASData, pStream->handle)) != EAS_SUCCESS) in EAS_ParseMetaData()
1404 VMInitWorkload(pEASData->pVoiceMgr); in EAS_ParseMetaData()
1405 … if ((result = EAS_ParseEvents(pEASData, pStream, 0x7fffffff, eParserModeMetaData)) != EAS_SUCCESS) in EAS_ParseMetaData()
1409 if ((result = EAS_GetLocation(pEASData, pStream, playLength)) != EAS_SUCCESS) in EAS_ParseMetaData()
1414 return (*pParserModule->pfReset)(pEASData, pStream->handle); in EAS_ParseMetaData()
1438 EAS_DATA_HANDLE pEASData, in EAS_RegisterMetaDataCallback() argument
1447 if (!EAS_StreamReady(pEASData, pStream)) in EAS_RegisterMetaDataCallback()
1455 return EAS_SetStreamParameter(pEASData, pStream, PARSER_DATA_METADATA_CB, (EAS_I32) &metadata); in EAS_RegisterMetaDataCallback()
1464 EAS_PUBLIC EAS_RESULT EAS_GetNoteCount (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream, EAS_I32 *pNot… in EAS_GetNoteCount() argument
1466 if (!EAS_StreamReady(pEASData, pStream)) in EAS_GetNoteCount()
1468 return EAS_IntGetStrmParam(pEASData, pStream, PARSER_DATA_NOTE_COUNT, pNoteCount); in EAS_GetNoteCount()
1489 EAS_PUBLIC EAS_RESULT EAS_CloseFile (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream) in EAS_CloseFile() argument
1499 result = (*pParserModule->pfClose)(pEASData, pStream->handle); in EAS_CloseFile()
1524 EAS_PUBLIC EAS_RESULT EAS_OpenMIDIStream (EAS_DATA_HANDLE pEASData, EAS_HANDLE *ppStream, EAS_HANDL… in EAS_OpenMIDIStream() argument
1534 if ((streamNum = EAS_AllocateStream(pEASData)) < 0) in EAS_OpenMIDIStream()
1538 if (pEASData->staticMemoryModel) in EAS_OpenMIDIStream()
1541 pMIDIStream = EAS_HWMalloc(pEASData->hwInstData, sizeof(S_INTERACTIVE_MIDI)); in EAS_OpenMIDIStream()
1552 EAS_InitStream(&pEASData->streams[streamNum], NULL, pMIDIStream); in EAS_OpenMIDIStream()
1557 result = VMInitMIDI(pEASData, &pMIDIStream->pSynth); in EAS_OpenMIDIStream()
1564 result = EAS_GetStreamParameter(pEASData, streamHandle, PARSER_DATA_SYNTH_HANDLE, &value); in EAS_OpenMIDIStream()
1570 EAS_CloseMIDIStream(pEASData, &pEASData->streams[streamNum]); in EAS_OpenMIDIStream()
1577 *ppStream = (EAS_HANDLE) &pEASData->streams[streamNum]; in EAS_OpenMIDIStream()
1600 EAS_PUBLIC EAS_RESULT EAS_WriteMIDIStream (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream, EAS_U8 *pB… in EAS_WriteMIDIStream() argument
1613 …if ((result = EAS_ParseMIDIStream(pEASData, pMIDIStream->pSynth, &pMIDIStream->stream, *pBuffer++,… in EAS_WriteMIDIStream()
1636 EAS_PUBLIC EAS_RESULT EAS_CloseMIDIStream (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream) in EAS_CloseMIDIStream() argument
1645 VMMIDIShutdown(pEASData, pMIDIStream->pSynth); in EAS_CloseMIDIStream()
1650 if (!pEASData->staticMemoryModel) in EAS_CloseMIDIStream()
1651 EAS_HWFree(((S_EAS_DATA*) pEASData)->hwInstData, pMIDIStream); in EAS_CloseMIDIStream()
1674 EAS_PUBLIC EAS_RESULT EAS_State (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream, EAS_STATE *pState) in EAS_State() argument
1684 if ((result = (*pParserModule->pfState)(pEASData, pStream->handle, pState)) != EAS_SUCCESS) in EAS_State()
1729 EAS_PUBLIC EAS_RESULT EAS_SetPolyphony (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream, EAS_I32 polyp… in EAS_SetPolyphony() argument
1731 if (!EAS_StreamReady(pEASData, pStream)) in EAS_SetPolyphony()
1733 return EAS_IntSetStrmParam(pEASData, pStream, PARSER_DATA_POLYPHONY, polyphonyCount); in EAS_SetPolyphony()
1753 EAS_PUBLIC EAS_RESULT EAS_GetPolyphony (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream, EAS_I32 *pPol… in EAS_GetPolyphony() argument
1755 if (!EAS_StreamReady(pEASData, pStream)) in EAS_GetPolyphony()
1757 return EAS_IntGetStrmParam(pEASData, pStream, PARSER_DATA_POLYPHONY, pPolyphonyCount); in EAS_GetPolyphony()
1779 EAS_PUBLIC EAS_RESULT EAS_SetSynthPolyphony (EAS_DATA_HANDLE pEASData, EAS_I32 synthNum, EAS_I32 po… in EAS_SetSynthPolyphony() argument
1781 return VMSetSynthPolyphony(pEASData->pVoiceMgr, synthNum, polyphonyCount); in EAS_SetSynthPolyphony()
1801 EAS_PUBLIC EAS_RESULT EAS_GetSynthPolyphony (EAS_DATA_HANDLE pEASData, EAS_I32 synthNum, EAS_I32 *p… in EAS_GetSynthPolyphony() argument
1803 return VMGetSynthPolyphony(pEASData->pVoiceMgr, synthNum, pPolyphonyCount); in EAS_GetSynthPolyphony()
1826 EAS_PUBLIC EAS_RESULT EAS_SetPriority (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream, EAS_I32 priori… in EAS_SetPriority() argument
1828 if (!EAS_StreamReady(pEASData, pStream)) in EAS_SetPriority()
1830 return EAS_IntSetStrmParam(pEASData, pStream, PARSER_DATA_PRIORITY, priority); in EAS_SetPriority()
1850 EAS_PUBLIC EAS_RESULT EAS_GetPriority (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream, EAS_I32 *pPrio… in EAS_GetPriority() argument
1852 if (!EAS_StreamReady(pEASData, pStream)) in EAS_GetPriority()
1854 return EAS_IntGetStrmParam(pEASData, pStream, PARSER_DATA_PRIORITY, pPriority); in EAS_GetPriority()
1876 EAS_PUBLIC EAS_RESULT EAS_SetVolume (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream, EAS_I32 volume) in EAS_SetVolume() argument
1890 if (!EAS_StreamReady(pEASData, pStream)) in EAS_SetVolume()
1895 result = EAS_GetStreamParameter(pEASData, pStream, PARSER_DATA_GAIN_OFFSET, &gainOffset); in EAS_SetVolume()
1903 return EAS_IntSetStrmParam(pEASData, pStream, PARSER_DATA_VOLUME, gain); in EAS_SetVolume()
1907 pEASData->masterVolume = (EAS_U8) volume; in EAS_SetVolume()
1914 pEASData->masterGain = gain; in EAS_SetVolume()
1938 EAS_PUBLIC EAS_I32 EAS_GetVolume (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream) in EAS_GetVolume() argument
1941 return pEASData->masterVolume; in EAS_GetVolume()
1943 if (!EAS_StreamReady(pEASData, pStream)) in EAS_GetVolume()
1968 EAS_PUBLIC EAS_RESULT EAS_SetMaxLoad (EAS_DATA_HANDLE pEASData, EAS_I32 maxLoad) in EAS_SetMaxLoad() argument
1970 VMSetWorkload(pEASData->pVoiceMgr, maxLoad); in EAS_SetMaxLoad()
1986 EAS_PUBLIC EAS_RESULT EAS_SetMaxPCMStreams (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream, EAS_I32 m… in EAS_SetMaxPCMStreams() argument
1988 if (!EAS_StreamReady(pEASData, pStream)) in EAS_SetMaxPCMStreams()
1990 return EAS_IntSetStrmParam(pEASData, pStream, PARSER_DATA_MAX_PCM_STREAMS, maxNumStreams); in EAS_SetMaxPCMStreams()
2014 EAS_PUBLIC EAS_RESULT EAS_Locate (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream, EAS_I32 millisecond… in EAS_Locate() argument
2026 if ((result = (*pParserModule->pfState)(pEASData, pStream->handle, &state)) != EAS_SUCCESS) in EAS_Locate()
2050 …result = pParserModule->pfLocate(pEASData, pStream->handle, (EAS_I32) requestedTime, &parserLocate… in EAS_Locate()
2064 if ((result = (*pParserModule->pfReset)(pEASData, pStream->handle)) != EAS_SUCCESS) in EAS_Locate()
2069 …if ((result = EAS_ParseEvents(pEASData, pStream, requestedTime << 8, eParserModeLocate)) != EAS_SU… in EAS_Locate()
2094 EAS_PUBLIC EAS_RESULT EAS_GetLocation (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream, EAS_I32 *pTime) in EAS_GetLocation() argument
2096 if (!EAS_StreamReady(pEASData, pStream)) in EAS_GetLocation()
2119 EAS_PUBLIC EAS_RESULT EAS_GetRenderTime (EAS_DATA_HANDLE pEASData, EAS_I32 *pTime) in EAS_GetRenderTime() argument
2121 *pTime = pEASData->renderTime >> 8; in EAS_GetRenderTime()
2145 EAS_PUBLIC EAS_RESULT EAS_Pause (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream) in EAS_Pause() argument
2156 result = pParserModule->pfState(pEASData, pStream->handle, &state); in EAS_Pause()
2175 result = pParserModule->pfPause(pEASData, pStream->handle); in EAS_Pause()
2203 EAS_PUBLIC EAS_RESULT EAS_Resume (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream) in EAS_Resume() argument
2214 result = pParserModule->pfState(pEASData, pStream->handle, &state); in EAS_Resume()
2233 result = pParserModule->pfResume(pEASData, pStream->handle); in EAS_Resume()
2264 EAS_PUBLIC EAS_RESULT EAS_GetParameter (EAS_DATA_HANDLE pEASData, EAS_I32 module, EAS_I32 param, EA… in EAS_GetParameter() argument
2270 if (pEASData->effectsModules[module].effectData == NULL) in EAS_GetParameter()
2273 return (*pEASData->effectsModules[module].effect->pFGetParam) in EAS_GetParameter()
2274 (pEASData->effectsModules[module].effectData, param, pValue); in EAS_GetParameter()
2299 EAS_PUBLIC EAS_RESULT EAS_SetParameter (EAS_DATA_HANDLE pEASData, EAS_I32 module, EAS_I32 param, EA… in EAS_SetParameter() argument
2305 if (pEASData->effectsModules[module].effectData == NULL) in EAS_SetParameter()
2308 return (*pEASData->effectsModules[module].effect->pFSetParam) in EAS_SetParameter()
2309 (pEASData->effectsModules[module].effectData, param, value); in EAS_SetParameter()
2329 EAS_PUBLIC EAS_RESULT EAS_MetricsReport (EAS_DATA_HANDLE pEASData) in EAS_MetricsReport() argument
2331 if (!pEASData->pMetricsModule) in EAS_MetricsReport()
2334 return (*pEASData->pMetricsModule->pfReport)(pEASData->pMetricsData); in EAS_MetricsReport()
2353 EAS_PUBLIC EAS_RESULT EAS_MetricsReset (EAS_DATA_HANDLE pEASData) in EAS_MetricsReset() argument
2356 if (!pEASData->pMetricsModule) in EAS_MetricsReset()
2359 return (*pEASData->pMetricsModule->pfReset)(pEASData->pMetricsData); in EAS_MetricsReset()
2380 EAS_PUBLIC EAS_RESULT EAS_SetSoundLibrary (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream, EAS_SNDLIB… in EAS_SetSoundLibrary() argument
2384 if (!EAS_StreamReady(pEASData, pStream)) in EAS_SetSoundLibrary()
2386 return EAS_IntSetStrmParam(pEASData, pStream, PARSER_DATA_EAS_LIBRARY, (EAS_I32) pSndLib); in EAS_SetSoundLibrary()
2389 return VMSetGlobalEASLib(pEASData->pVoiceMgr, pSndLib); in EAS_SetSoundLibrary()
2409 EAS_PUBLIC EAS_RESULT EAS_SetHeaderSearchFlag (EAS_DATA_HANDLE pEASData, EAS_BOOL searchFlag) in EAS_SetHeaderSearchFlag() argument
2411 pEASData->searchHeaderFlag = (EAS_BOOL8) searchFlag; in EAS_SetHeaderSearchFlag()
2428 EAS_PUBLIC EAS_RESULT EAS_SetPlayMode (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream, EAS_I32 playMo… in EAS_SetPlayMode() argument
2430 return EAS_IntSetStrmParam(pEASData, pStream, PARSER_DATA_PLAY_MODE, playMode); in EAS_SetPlayMode()
2451 EAS_PUBLIC EAS_RESULT EAS_LoadDLSCollection (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream, EAS_FILE… in EAS_LoadDLSCollection() argument
2459 if (!EAS_StreamReady(pEASData, pStream)) in EAS_LoadDLSCollection()
2464 …if ((result = EAS_HWOpenFile(pEASData->hwInstData, locator, &fileHandle, EAS_FILE_READ)) != EAS_SU… in EAS_LoadDLSCollection()
2468 result = DLSParser(pEASData->hwInstData, fileHandle, 0, &pDLS); in EAS_LoadDLSCollection()
2469 EAS_HWCloseFile(pEASData->hwInstData, fileHandle); in EAS_LoadDLSCollection()
2476 … result = EAS_IntSetStrmParam(pEASData, pStream, PARSER_DATA_DLS_COLLECTION, (EAS_I32) pDLS); in EAS_LoadDLSCollection()
2480 result = VMSetGlobalDLSLib(pEASData, pDLS); in EAS_LoadDLSCollection()
2507 EAS_PUBLIC EAS_RESULT EAS_RegExtAudioCallback (EAS_DATA_HANDLE pEASData, in EAS_RegExtAudioCallback() argument
2515 if (!EAS_StreamReady(pEASData, pStream)) in EAS_RegExtAudioCallback()
2518 …if (EAS_GetStreamParameter(pEASData, pStream, PARSER_DATA_SYNTH_HANDLE, (EAS_I32*) &pSynth) != EAS… in EAS_RegExtAudioCallback()
2546 EAS_PUBLIC EAS_RESULT EAS_GetMIDIControllers (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream, EAS_U8 … in EAS_GetMIDIControllers() argument
2550 if (!EAS_StreamReady(pEASData, pStream)) in EAS_GetMIDIControllers()
2553 …if (EAS_GetStreamParameter(pEASData, pStream, PARSER_DATA_SYNTH_HANDLE, (EAS_I32*) &pSynth) != EAS… in EAS_GetMIDIControllers()
2583 EAS_PUBLIC EAS_RESULT EAS_SetFrameBuffer (EAS_DATA_HANDLE pEASData, EAS_FRAME_BUFFER_HANDLE pFrameB… in EAS_SetFrameBuffer() argument
2585 if (pEASData->pVoiceMgr) in EAS_SetFrameBuffer()
2586 pEASData->pVoiceMgr->pFrameBuffer = pFrameBuffer; in EAS_SetFrameBuffer()
2607 EAS_RESULT EAS_SearchFile (S_EAS_DATA *pEASData, EAS_FILE_HANDLE fileHandle, const EAS_U8 *searchSt… in EAS_SearchFile() argument
2617 result = EAS_HWGetByte(pEASData->hwInstData, fileHandle, &c); in EAS_SearchFile()
2625 result = EAS_HWFilePos(pEASData->hwInstData, fileHandle, pOffset); in EAS_SearchFile()