Lines Matching defs:pEASData
84 static EAS_RESULT EAS_ParseEvents (S_EAS_DATA *pEASData, S_EAS_STREAM *pStream, EAS_U32 endTime, EAS_INT parseMode);
92 * pEASData - pointer to EAS persistent data object
98 EAS_RESULT EAS_SetStreamParameter (S_EAS_DATA *pEASData, EAS_HANDLE pStream, EAS_I32 param, EAS_I32 value)
104 return (*pParserModule->pfSetData)(pEASData, pStream->handle, param, value);
114 * pEASData - pointer to EAS persistent data object
120 EAS_RESULT EAS_GetStreamParameter (S_EAS_DATA *pEASData, EAS_HANDLE pStream, EAS_I32 param, EAS_I32 *pValue)
126 return (*pParserModule->pfGetData)(pEASData, pStream->handle, param, pValue);
140 EAS_BOOL EAS_StreamReady (S_EAS_DATA *pEASData, EAS_HANDLE pStream)
146 if (pParserModule->pfState(pEASData, pStream->handle, &state) != EAS_SUCCESS)
161 EAS_RESULT EAS_IntSetStrmParam (S_EAS_DATA *pEASData, EAS_HANDLE pStream, EAS_INT param, EAS_I32 value)
166 if (EAS_SetStreamParameter(pEASData, pStream, param, value) == EAS_SUCCESS)
171 if (EAS_GetStreamParameter(pEASData, pStream, PARSER_DATA_SYNTH_HANDLE, (EAS_I32*) &pSynth) != EAS_SUCCESS)
187 VMInitializeAllChannels(pEASData->pVoiceMgr, pSynth);
197 return VMSetPolyphony(pEASData->pVoiceMgr, pSynth, value);
200 return VMSetPriority(pEASData->pVoiceMgr, pSynth, value);
227 EAS_RESULT EAS_IntGetStrmParam (S_EAS_DATA *pEASData, EAS_HANDLE pStream, EAS_INT param, EAS_I32 *pValue)
232 if (EAS_GetStreamParameter(pEASData, pStream, param, pValue) == EAS_SUCCESS)
237 if (EAS_GetStreamParameter(pEASData, pStream, PARSER_DATA_SYNTH_HANDLE, (EAS_I32*) &pSynth) != EAS_SUCCESS)
246 return VMGetPolyphony(pEASData->pVoiceMgr, pSynth, pValue);
249 return VMGetPriority(pEASData->pVoiceMgr, pSynth, pValue);
279 static EAS_INT EAS_AllocateStream (EAS_DATA_HANDLE pEASData)
284 if (pEASData->staticMemoryModel)
286 if (pEASData->streams[0].handle != NULL)
296 if (pEASData->streams[streamNum].handle == NULL)
363 S_EAS_DATA *pEASData;
377 pEASData = EAS_CMEnumData(EAS_CM_EAS_DATA);
379 pEASData = EAS_HWMalloc(pHWInstData, sizeof(S_EAS_DATA));
380 if (!pEASData)
387 EAS_HWMemSet(pEASData, 0, sizeof(S_EAS_DATA));
388 pEASData->staticMemoryModel = (EAS_BOOL8) staticMemoryModel;
389 pEASData->hwInstData = pHWInstData;
390 pEASData->renderTime = 0;
394 pEASData->searchHeaderFlag = EAS_TRUE;
398 EAS_SetVolume(pEASData, NULL, DEFAULT_VOLUME);
402 pEASData->pMetricsModule = EAS_CMEnumOptModules(EAS_MODULE_METRICS);
403 if (pEASData->pMetricsModule != NULL)
405 if ((result = (*pEASData->pMetricsModule->pfInit)(pEASData, &pEASData->pMetricsData)) != EAS_SUCCESS)
414 if ((result = VMInitialize(pEASData)) != EAS_SUCCESS)
418 if ((result = EAS_MixEngineInit(pEASData)) != EAS_SUCCESS)
427 pEASData->effectsModules[module].effect = EAS_CMEnumFXModules(module);
428 if (pEASData->effectsModules[module].effect != NULL)
430 if ((result = (*pEASData->effectsModules[module].effect->pfInit)(pEASData, &pEASData->effectsModules[module].effectData)) != EAS_SUCCESS)
439 if ((result = EAS_PEInit(pEASData)) != EAS_SUCCESS)
446 *ppEASData = pEASData;
459 * pEASData - handle to data for this instance
465 EAS_PUBLIC EAS_RESULT EAS_Shutdown (EAS_DATA_HANDLE pEASData)
472 hwInstData = pEASData->hwInstData;
475 if (!pEASData)
482 if (pEASData->streams[i].pParserModule && pEASData
484 if ((result = (*((S_FILE_PARSER_INTERFACE*)(pEASData->streams[i].pParserModule))->pfClose)(pEASData, pEASData->streams[i].handle)) != EAS_SUCCESS)
493 if ((result = EAS_PEShutdown(pEASData)) != EAS_SUCCESS)
501 if ((result = EAS_MixEngineShutdown(pEASData)) != EAS_SUCCESS)
511 if (pEASData->effectsModules[i].effect)
513 if ((result = (*pEASData->effectsModules[i].effect->pfShutdown)(pEASData, pEASData->effectsModules[i].effectData)) != EAS_SUCCESS)
523 VMShutdown(pEASData);
527 if (pEASData->pMetricsModule != NULL)
529 if ((result = (*pEASData->pMetricsModule->pfShutdown)(pEASData, pEASData->pMetricsData)) != EAS_SUCCESS)
539 if (!pEASData->staticMemoryModel)
540 EAS_HWFree(hwInstData, pEASData);
563 EAS_RESULT EAS_OpenJETStream (EAS_DATA_HANDLE pEASData, EAS_FILE_HANDLE fileHandle, EAS_I32 offset, EAS_HANDLE *ppStream)
571 if ((streamNum = EAS_AllocateStream(pEASData)) < 0)
582 if ((result = (*pParserModule->pfCheckFileType)(pEASData, fileHandle, &streamHandle, offset)) != EAS_SUCCESS)
591 EAS_InitStream(&pEASData->streams[streamNum], pParserModule, streamHandle);
592 *ppStream = &pEASData->streams[streamNum];
607 * pEASData - pointer to overall EAS data structure
617 EAS_PUBLIC EAS_RESULT EAS_OpenFile (EAS_DATA_HANDLE pEASData, EAS_FILE_LOCATOR locator, EAS_HANDLE *ppStream)
627 if ((result = EAS_HWOpenFile(pEASData->hwInstData, locator, &fileHandle, EAS_FILE_READ)) != EAS_SUCCESS)
631 if ((streamNum = EAS_AllocateStream(pEASData)) < 0)
645 if ((result = (*pParserModule->pfCheckFileType)(pEASData, fileHandle, &streamHandle, 0L)) != EAS_SUCCESS)
656 EAS_InitStream(&pEASData->streams[streamNum], pParserModule, streamHandle);
657 *ppStream = &pEASData->streams[streamNum];
662 if ((result = EAS_HWFileSeek(pEASData->hwInstData, fileHandle, 0L)) != EAS_SUCCESS)
667 EAS_HWCloseFile(pEASData->hwInstData, fileHandle);
680 * pEASData - pointer to overall EAS data structure
690 EAS_PUBLIC EAS_RESULT EAS_MMAPIToneControl (EAS_DATA_HANDLE pEASData, EAS_FILE_LOCATOR locator, EAS_HANDLE *ppStream)
709 if ((result = EAS_HWOpenFile(pEASData->hwInstData, locator, &fileHandle, EAS_FILE_READ)) != EAS_SUCCESS)
713 if ((streamNum = EAS_AllocateStream(pEASData)) < 0)
717 if ((result = (*pParserModule->pfCheckFileType)(pEASData, fileHandle, &streamHandle, 0L)) != EAS_SUCCESS)
728 EAS_InitStream(&pEASData->streams[streamNum], pParserModule, streamHandle);
729 *ppStream = &pEASData->streams[streamNum];
734 EAS_HWCloseFile(pEASData->hwInstData, fileHandle);
744 * pEASData - pointer to EAS persistent data object
749 EAS_PUBLIC EAS_RESULT EAS_GetWaveFmtChunk (S_EAS_DATA *pEASData, EAS_HANDLE pStream, EAS_VOID_PTR *ppFmtChunk)
754 if ((result = EAS_GetStreamParameter(pEASData, pStream, PARSER_DATA_FORMAT, &value)) != EAS_SUCCESS)
766 * pEASData - pointer to EAS persistent data object
771 EAS_PUBLIC EAS_RESULT EAS_GetFileType (S_EAS_DATA *pEASData, EAS_HANDLE pStream, EAS_I32 *pFileType)
773 if (!EAS_StreamReady (pEASData, pStream))
775 return EAS_GetStreamParameter(pEASData, pStream, PARSER_DATA_FILE_TYPE, pFileType);
786 * pEASData - pointer to overall EAS data structure
796 EAS_PUBLIC EAS_RESULT EAS_Prepare (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream)
807 result = pParserModule->pfState(pEASData, pStream->handle, &state);
814 result = (*pParserModule->pfPrepare)(pEASData, pStream->handle);
818 result = EAS_SetVolume(pEASData, pStream, pStream->volume);
835 * pEASData - buffer for internal EAS data
845 EAS_PUBLIC EAS_RESULT EAS_Render (EAS_DATA_HANDLE pEASData, EAS_PCM *pOut, EAS_I32 numRequested, EAS_I32 *pNumGenerated)
855 VMInitWorkload(pEASData->pVoiceMgr);
867 if (pEASData->pMetricsData)
868 (*pEASData->pMetricsModule->pfStartTimer)(pEASData->pMetricsData, EAS_PM_TOTAL_TIME);
873 if (VMStartFrame(pEASData))
874 EAS_MixEnginePrep(pEASData, numRequested);
877 EAS_MixEnginePrep(pEASData, numRequested);
881 pEASData->pOutputAudioBuffer = pOut;
886 if (pEASData->pMetricsData)
887 (*pEASData->pMetricsModule->pfStartTimer)(pEASData->pMetricsData, EAS_PM_PARSE_TIME);
895 pEASData->streams[streamNum].streamFlags &= ~STREAM_FLAGS_LOCATE;
897 if (pEASData->streams[streamNum].pParserModule)
901 pParserModule = pEASData->streams[streamNum].pParserModule;
904 if (pEASData->streams[streamNum].streamFlags & STREAM_FLAGS_PAUSE)
907 result = pParserModule->pfPause(pEASData, pEASData->streams[streamNum].handle);
908 pEASData->streams[streamNum].streamFlags &= ~STREAM_FLAGS_PAUSE;
912 if ((result = (*pParserModule->pfState)(pEASData, pEASData->streams[streamNum].handle, &parserState)) != EAS_SUCCESS)
918 if (pEASData->streams[streamNum].streamFlags & STREAM_FLAGS_RESUME)
921 result = pParserModule->pfResume(pEASData, pEASData->streams[streamNum].handle);
922 pEASData->streams[streamNum].streamFlags &= ~STREAM_FLAGS_RESUME;
927 if ((pEASData->streams[streamNum].streamFlags & STREAM_FLAGS_PARSED) == 0)
928 if ((result = EAS_ParseEvents(pEASData, &pEASData->streams[streamNum], pEASData->streams[streamNum].time + pEASData->streams[streamNum].frameLength, eParserModePlay)) != EAS_SUCCESS)
932 if ((pEASData->streams[streamNum].streamFlags) == 0)
937 if (pEASData->pMetricsData)
938 (*pEASData->pMetricsModule->pfStartTimer)(pEASData->pMetricsData, EAS_PM_TOTAL_TIME);
945 if (pEASData->streams[streamNum].repeatCount)
949 if ((result = (*pParserModule->pfState)(pEASData, pEASData->streams[streamNum].handle, &parserState)) != EAS_SUCCESS)
955 if (pEASData->streams[streamNum].repeatCount > 0)
956 pEASData->streams[streamNum].repeatCount--;
959 if ((result = (*pParserModule->pfReset)(pEASData, pEASData->streams[streamNum].handle)) != EAS_SUCCESS)
961 pEASData->streams[streamNum].time = 0;
969 if (pEASData->pMetricsData)
970 (void)(*pEASData->pMetricsModule->pfStopTimer)(pEASData->pMetricsData, EAS_PM_PARSE_TIME);
975 if (pEASData->pMetricsData)
976 (*pEASData->pMetricsModule->pfStartTimer)(pEASData->pMetricsData, EAS_PM_RENDER_TIME);
980 if ((result = VMRender(pEASData->pVoiceMgr, BUFFER_SIZE_IN_MONO_SAMPLES, pEASData->pMixBuffer, &voicesRendered)) != EAS_SUCCESS)
988 if (pEASData->pMetricsData) {
989 (*pEASData->pMetricsModule->pfIncrementCounter)(pEASData->pMetricsData, EAS_PM_FRAME_COUNT, 1);
990 (void)(*pEASData->pMetricsModule->pfStopTimer)(pEASData->pMetricsData, EAS_PM_RENDER_TIME);
991 (*pEASData->pMetricsModule->pfIncrementCounter)(pEASData->pMetricsData, EAS_PM_TOTAL_VOICE_COUNT, (EAS_U32) voicesRendered);
992 (void)(*pEASData->pMetricsModule->pfRecordMaxValue)(pEASData->pMetricsData, EAS_PM_MAX_VOICES, (EAS_U32) voicesRendered);
999 if (pEASData->streams[streamNum].pParserModule != NULL)
1000 pEASData->streams[streamNum].streamFlags &= ~STREAM_FLAGS_PARSED;
1004 if (pEASData->pMetricsData)
1005 (*pEASData->pMetricsModule->pfStartTimer)(pEASData->pMetricsData, EAS_PM_STREAM_TIME);
1009 if ((result = EAS_PERender(pEASData, numRequested)) != EAS_SUCCESS)
1017 if (pEASData->pMetricsData)
1018 (void)(*pEASData->pMetricsModule->pfStopTimer)(pEASData->pMetricsData, EAS_PM_STREAM_TIME);
1023 if (pEASData->pMetricsData)
1024 (*pEASData->pMetricsModule->pfStartTimer)(pEASData->pMetricsData, EAS_PM_POST_TIME);
1029 if (VMEndFrame(pEASData))
1032 EAS_MixEnginePost(pEASData, numRequested);
1037 EAS_MixEnginePost(pEASData, numRequested);
1043 if (pEASData->pMetricsData)
1044 (void)(*pEASData->pMetricsModule->pfStopTimer)(pEASData->pMetricsData, EAS_PM_POST_TIME);
1048 pEASData->renderTime += AUDIO_FRAME_LENGTH;
1052 if (pEASData->pVoiceMgr->workload)
1053 { /* dpp: EAS_ReportEx(_EAS_SEVERITY_DETAIL, "Workload = %d\n", pEASData->pVoiceMgr->workload); */ }
1058 if (pEASData->pMetricsData)
1061 temp = (*pEASData->pMetricsModule->pfStopTimer)(pEASData->pMetricsData, EAS_PM_TOTAL_TIME);
1064 if ((*pEASData->pMetricsModule->pfRecordMaxValue)
1065 (pEASData->pMetricsData, EAS_PM_MAX_CYCLES, (EAS_U32) temp))
1067 (*pEASData->pMetricsModule->pfRecordValue)(pEASData->pMetricsData, EAS_PM_MAX_CYCLES_VOICES, (EAS_U32) voicesRendered);
1068 (*pEASData->pMetricsModule->pfRecordValue)(pEASData->pMetricsData, EAS_PM_MAX_CYCLES_TIME, (EAS_I32) (pEASData->renderTime >> 8));
1075 if (pEASData->jetHandle != NULL)
1077 result = JET_Process(pEASData);
1093 * pEASData - handle to data for this instance
1107 /*lint -esym(715, pEASData) reserved for future use */
1108 EAS_PUBLIC EAS_RESULT EAS_SetRepeat (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream, EAS_I32 repeatCount)
1121 * pEASData - handle to data for this instance
1135 /*lint -esym(715, pEASData) reserved for future use */
1136 EAS_PUBLIC EAS_RESULT EAS_GetRepeat (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream, EAS_I32 *pRepeatCount)
1149 * pEASData - handle to data for this instance
1159 /*lint -esym(715, pEASData) reserved for future use */
1160 EAS_PUBLIC EAS_RESULT EAS_SetPlaybackRate (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream, EAS_U32 rate)
1177 EAS_SetStreamParameter(pEASData, pStream, PARSER_DATA_PLAYBACK_RATE, (EAS_I32) rate);
1190 * pEASData - handle to data for this instance
1200 EAS_PUBLIC EAS_RESULT EAS_SetTransposition (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream, EAS_I32 transposition)
1207 if (!EAS_StreamReady(pEASData, pStream))
1209 return EAS_IntSetStrmParam(pEASData, pStream, PARSER_DATA_TRANSPOSITION, transposition);
1219 * pEASData - buffer for internal EAS data
1228 static EAS_RESULT EAS_ParseEvents (S_EAS_DATA *pEASData, EAS_HANDLE pStream, EAS_U32 endTime, EAS_INT parseMode)
1242 if ((result = (*pParserModule->pfState)(pEASData, pStream->handle, &parserState)) != EAS_SUCCESS)
1261 if ((result = (*pParserModule->pfState)(pEASData, pStream->handle, &parserState)) != EAS_SUCCESS)
1275 if ((result = (*pParserModule->pfTime)(pEASData, pStream->handle, &time)) != EAS_SUCCESS)
1284 if ((result = (*pParserModule->pfEvent)(pEASData, pStream->handle, parseMode)) != EAS_SUCCESS)
1297 if (VMCheckWorkload(pEASData->pVoiceMgr))
1309 if (EAS_HWYield(pEASData->hwInstData))
1329 * pEASData - pointer to overall EAS data structure
1340 EAS_PUBLIC EAS_RESULT EAS_ParseMetaData (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream, EAS_I32 *playLength)
1351 if ((result = (*pParserModule->pfState)(pEASData, pStream->handle, &state)) != EAS_SUCCESS)
1358 return pParserModule->pfGetMetaData(pEASData, pStream->handle, playLength);
1361 if ((result = (*pParserModule->pfReset)(pEASData, pStream->handle)) != EAS_SUCCESS)
1366 VMInitWorkload(pEASData->pVoiceMgr);
1367 if ((result = EAS_ParseEvents(pEASData, pStream, 0x7fffffff, eParserModeMetaData)) != EAS_SUCCESS)
1371 if ((result = EAS_GetLocation(pEASData, pStream, playLength)) != EAS_SUCCESS)
1376 return (*pParserModule->pfReset)(pEASData, pStream->handle);
1386 * pEASData - pointer to overall EAS data structure
1400 EAS_DATA_HANDLE pEASData,
1409 if (!EAS_StreamReady(pEASData, pStream))
1417 return EAS_SetStreamParameter(pEASData, pStream, PARSER_DATA_METADATA_CB, (EAS_I32) &metadata);
1426 EAS_PUBLIC EAS_RESULT EAS_GetNoteCount (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream, EAS_I32 *pNoteCount)
1428 if (!EAS_StreamReady(pEASData, pStream))
1430 return EAS_IntGetStrmParam(pEASData, pStream, PARSER_DATA_NOTE_COUNT, pNoteCount);
1441 * pEASData - pointer to overall EAS data structure
1451 EAS_PUBLIC EAS_RESULT EAS_CloseFile (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream)
1461 result = (*pParserModule->pfClose)(pEASData, pStream->handle);
1476 * pEASData - pointer to overall EAS data structure
1486 EAS_PUBLIC EAS_RESULT EAS_OpenMIDIStream (EAS_DATA_HANDLE pEASData, EAS_HANDLE *ppStream, EAS_HANDLE streamHandle)
1496 if ((streamNum = EAS_AllocateStream(pEASData)) < 0)
1500 if (pEASData->staticMemoryModel)
1503 pMIDIStream = EAS_HWMalloc(pEASData->hwInstData, sizeof(S_INTERACTIVE_MIDI));
1514 EAS_InitStream(&pEASData->streams[streamNum], NULL, pMIDIStream);
1519 result = VMInitMIDI(pEASData, &pMIDIStream->pSynth);
1526 result = EAS_GetStreamParameter(pEASData, streamHandle, PARSER_DATA_SYNTH_HANDLE, &value);
1532 EAS_CloseMIDIStream(pEASData, &pEASData->streams[streamNum]);
1539 *ppStream = (EAS_HANDLE) &pEASData->streams[streamNum];
1550 * pEASData - pointer to overall EAS data structure
1562 EAS_PUBLIC EAS_RESULT EAS_WriteMIDIStream (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream, EAS_U8 *pBuffer, EAS_I32 count)
1572 if ((result = EAS_ParseMIDIStream(pEASData, pMIDIStream->pSynth, &pMIDIStream->stream, *pBuffer++, eParserModePlay)) != EAS_SUCCESS)
1585 * pEASData - pointer to overall EAS data structure
1595 EAS_PUBLIC EAS_RESULT EAS_CloseMIDIStream (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream)
1604 VMMIDIShutdown(pEASData, pMIDIStream->pSynth);
1609 if (!pEASData->staticMemoryModel)
1610 EAS_HWFree(((S_EAS_DATA*) pEASData)->hwInstData, pMIDIStream);
1623 * pEASData - pointer to overall EAS data structure
1633 EAS_PUBLIC EAS_RESULT EAS_State (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream, EAS_STATE *pState)
1643 if ((result = (*pParserModule->pfState)(pEASData, pStream->handle, pState)) != EAS_SUCCESS)
1678 * pEASData - pointer to overall EAS data structure
1688 EAS_PUBLIC EAS_RESULT EAS_SetPolyphony (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream, EAS_I32 polyphonyCount)
1690 if (!EAS_StreamReady(pEASData, pStream))
1692 return EAS_IntSetStrmParam(pEASData, pStream, PARSER_DATA_POLYPHONY, polyphonyCount);
1702 * pEASData - pointer to overall EAS data structure
1712 EAS_PUBLIC EAS_RESULT EAS_GetPolyphony (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream, EAS_I32 *pPolyphonyCount)
1714 if (!EAS_StreamReady(pEASData, pStream))
1716 return EAS_IntGetStrmParam(pEASData, pStream, PARSER_DATA_POLYPHONY, pPolyphonyCount);
1728 * pEASData - pointer to overall EAS data structure
1738 EAS_PUBLIC EAS_RESULT EAS_SetSynthPolyphony (EAS_DATA_HANDLE pEASData, EAS_I32 synthNum, EAS_I32 polyphonyCount)
1740 return VMSetSynthPolyphony(pEASData->pVoiceMgr, synthNum, polyphonyCount);
1750 * pEASData - pointer to overall EAS data structure
1760 EAS_PUBLIC EAS_RESULT EAS_GetSynthPolyphony (EAS_DATA_HANDLE pEASData, EAS_I32 synthNum, EAS_I32 *pPolyphonyCount)
1762 return VMGetSynthPolyphony(pEASData->pVoiceMgr, synthNum, pPolyphonyCount);
1775 * pEASData - pointer to overall EAS data structure
1785 EAS_PUBLIC EAS_RESULT EAS_SetPriority (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream, EAS_I32 priority)
1787 if (!EAS_StreamReady(pEASData, pStream))
1789 return EAS_IntSetStrmParam(pEASData, pStream, PARSER_DATA_PRIORITY, priority);
1799 * pEASData - pointer to overall EAS data structure
1809 EAS_PUBLIC EAS_RESULT EAS_GetPriority (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream, EAS_I32 *pPriority)
1811 if (!EAS_StreamReady(pEASData, pStream))
1813 return EAS_IntGetStrmParam(pEASData, pStream, PARSER_DATA_PRIORITY, pPriority);
1823 * pEASData - pointer to overall EAS data structure
1835 EAS_PUBLIC EAS_RESULT EAS_SetVolume (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream, EAS_I32 volume)
1849 if (!EAS_StreamReady(pEASData, pStream))
1854 result = EAS_GetStreamParameter(pEASData, pStream, PARSER_DATA_GAIN_OFFSET, &gainOffset);
1862 return EAS_IntSetStrmParam(pEASData, pStream, PARSER_DATA_VOLUME, gain);
1866 pEASData->masterVolume = (EAS_U8) volume;
1873 pEASData->masterGain = gain;
1885 * pEASData - pointer to overall EAS data structure
1897 EAS_PUBLIC EAS_I32 EAS_GetVolume (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream)
1900 return pEASData->masterVolume;
1902 if (!EAS_StreamReady(pEASData, pStream))
1918 * pEASData - handle to data for this instance
1927 EAS_PUBLIC EAS_RESULT EAS_SetMaxLoad (EAS_DATA_HANDLE pEASData, EAS_I32 maxLoad)
1929 VMSetWorkload(pEASData->pVoiceMgr, maxLoad);
1940 * pEASData - pointer to overall EAS data structure
1945 EAS_PUBLIC EAS_RESULT EAS_SetMaxPCMStreams (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream, EAS_I32 maxNumStreams)
1947 if (!EAS_StreamReady(pEASData, pStream))
1949 return EAS_IntSetStrmParam(pEASData, pStream, PARSER_DATA_MAX_PCM_STREAMS, maxNumStreams);
1959 * pEASData - pointer to overall EAS data structure
1973 EAS_PUBLIC EAS_RESULT EAS_Locate (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream, EAS_I32 milliseconds, EAS_BOOL offset)
1985 if ((result = (*pParserModule->pfState)(pEASData, pStream->handle, &state)) != EAS_SUCCESS)
2009 result = pParserModule->pfLocate(pEASData, pStream->handle, (EAS_I32) requestedTime, &parserLocate);
2023 if ((result = (*pParserModule->pfReset)(pEASData, pStream->handle)) != EAS_SUCCESS)
2028 if ((result = EAS_ParseEvents(pEASData, pStream, requestedTime << 8, eParserModeLocate)) != EAS_SUCCESS)
2041 * pEASData - pointer to overall EAS data structure
2052 /*lint -esym(715, pEASData) reserved for future use */
2053 EAS_PUBLIC EAS_RESULT EAS_GetLocation (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream, EAS_I32 *pTime)
2055 if (!EAS_StreamReady(pEASData, pStream))
2069 * pEASData - pointer to overall EAS data structure
2078 EAS_PUBLIC EAS_RESULT EAS_GetRenderTime (EAS_DATA_HANDLE pEASData, EAS_I32 *pTime)
2080 *pTime = pEASData->renderTime >> 8;
2104 EAS_PUBLIC EAS_RESULT EAS_Pause (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream)
2115 result = pParserModule->pfState(pEASData, pStream->handle, &state);
2134 result = pParserModule->pfPause(pEASData, pStream->handle);
2162 EAS_PUBLIC EAS_RESULT EAS_Resume (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream)
2173 result = pParserModule->pfState(pEASData, pStream->handle, &state);
2192 result = pParserModule->pfResume(pEASData, pStream->handle);
2223 EAS_PUBLIC EAS_RESULT EAS_GetParameter (EAS_DATA_HANDLE pEASData, EAS_I32 module, EAS_I32 param, EAS_I32 *pValue)
2229 if (pEASData->effectsModules[module].effectData == NULL)
2232 return (*pEASData->effectsModules[module].effect->pFGetParam)
2233 (pEASData->effectsModules[module].effectData, param, pValue);
2258 EAS_PUBLIC EAS_RESULT EAS_SetParameter (EAS_DATA_HANDLE pEASData, EAS_I32 module, EAS_I32 param, EAS_I32 value)
2264 if (pEASData->effectsModules[module].effectData == NULL)
2267 return (*pEASData->effectsModules[module].effect->pFSetParam)
2268 (pEASData->effectsModules[module].effectData, param, value);
2288 EAS_PUBLIC EAS_RESULT EAS_MetricsReport (EAS_DATA_HANDLE pEASData)
2290 if (!pEASData->pMetricsModule)
2293 return (*pEASData->pMetricsModule->pfReport)(pEASData->pMetricsData);
2312 EAS_PUBLIC EAS_RESULT EAS_MetricsReset (EAS_DATA_HANDLE pEASData)
2315 if (!pEASData->pMetricsModule)
2318 return (*pEASData->pMetricsModule->pfReset)(pEASData->pMetricsData);
2329 * pEASData - instance data handle
2339 EAS_PUBLIC EAS_RESULT EAS_SetSoundLibrary (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream, EAS_SNDLIB_HANDLE pSndLib)
2343 if (!EAS_StreamReady(pEASData, pStream))
2345 return EAS_IntSetStrmParam(pEASData, pStream, PARSER_DATA_EAS_LIBRARY, (EAS_I32) pSndLib);
2348 return VMSetGlobalEASLib(pEASData->pVoiceMgr, pSndLib);
2364 * pEASData - instance data handle
2368 EAS_PUBLIC EAS_RESULT EAS_SetHeaderSearchFlag (EAS_DATA_HANDLE pEASData, EAS_BOOL searchFlag)
2370 pEASData->searchHeaderFlag = (EAS_BOOL8) searchFlag;
2382 * pEASData - instance data handle
2387 EAS_PUBLIC EAS_RESULT EAS_SetPlayMode (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream, EAS_I32 playMode)
2389 return EAS_IntSetStrmParam(pEASData, pStream, PARSER_DATA_PLAY_MODE, playMode);
2400 * pEASData - instance data handle
2410 EAS_PUBLIC EAS_RESULT EAS_LoadDLSCollection (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream, EAS_FILE_LOCATOR locator)
2418 pEASData, pStream))
2423 if ((result = EAS_HWOpenFile(pEASData->hwInstData, locator, &fileHandle, EAS_FILE_READ)) != EAS_SUCCESS)
2427 result = DLSParser(pEASData->hwInstData, fileHandle, 0, &pDLS);
2428 EAS_HWCloseFile(pEASData->hwInstData, fileHandle);
2435 result = EAS_IntSetStrmParam(pEASData, pStream, PARSER_DATA_DLS_COLLECTION, (EAS_I32) pDLS);
2439 result = VMSetGlobalDLSLib(pEASData, pDLS);
2454 * pEASData - pointer to overall EAS data structure
2466 EAS_PUBLIC EAS_RESULT EAS_RegExtAudioCallback (EAS_DATA_HANDLE pEASData,
2474 if (!EAS_StreamReady(pEASData, pStream))
2477 if (EAS_GetStreamParameter(pEASData, pStream, PARSER_DATA_SYNTH_HANDLE, (EAS_I32*) &pSynth) != EAS_SUCCESS)
2494 * pEASData - pointer to overall EAS data structure
2505 EAS_PUBLIC EAS_RESULT EAS_GetMIDIControllers (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream, EAS_U8 channel, S_MIDI_CONTROLLERS *pControl)
2509 if (!EAS_StreamReady(pEASData, pStream))
2512 if (EAS_GetStreamParameter(pEASData, pStream, PARSER_DATA_SYNTH_HANDLE, (EAS_I32*) &pSynth) != EAS_SUCCESS)
2531 * pEASData - instance data handle
2542 EAS_PUBLIC EAS_RESULT EAS_SetFrameBuffer (EAS_DATA_HANDLE pEASData, EAS_FRAME_BUFFER_HANDLE pFrameBuffer)
2544 if (pEASData->pVoiceMgr)
2545 pEASData->pVoiceMgr->pFrameBuffer = pFrameBuffer;
2557 * pEASData - pointer to EAS persistent data object
2566 EAS_RESULT EAS_SearchFile (S_EAS_DATA *pEASData, EAS_FILE_HANDLE fileHandle, const EAS_U8 *searchString, EAS_I32 len, EAS_I32 *pOffset)
2576 result = EAS_HWGetByte(pEASData->hwInstData, fileHandle, &c);
2584 result = EAS_HWFilePos(pEASData->hwInstData, fileHandle, pOffset);