Lines Matching refs:pStream

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
105 pParserModule = (S_FILE_PARSER_INTERFACE*) pStream->pParserModule; in EAS_SetStreamParameter()
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
127 pParserModule = (S_FILE_PARSER_INTERFACE*) pStream->pParserModule; in EAS_GetStreamParameter()
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
148 pParserModule = (S_FILE_PARSER_INTERFACE*) pStream->pParserModule; in EAS_StreamReady()
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()
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()
321 static void EAS_InitStream (S_EAS_STREAM *pStream, EAS_VOID_PTR pParserModule, EAS_VOID_PTR streamH… in EAS_InitStream() argument
323 pStream->pParserModule = pParserModule; in EAS_InitStream()
324 pStream->handle = streamHandle; in EAS_InitStream()
325 pStream->time = 0; in EAS_InitStream()
326 pStream->frameLength = AUDIO_FRAME_LENGTH; in EAS_InitStream()
327 pStream->repeatCount = 0; in EAS_InitStream()
328 pStream->volume = DEFAULT_STREAM_VOLUME; in EAS_InitStream()
329 pStream->streamFlags = 0; in EAS_InitStream()
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
816 pParserModule = (S_FILE_PARSER_INTERFACE*) pStream->pParserModule; in EAS_Prepare()
821 result = pParserModule->pfState(pEASData, pStream->handle, &state); in EAS_Prepare()
827 pParserModule = (S_FILE_PARSER_INTERFACE*) pStream->pParserModule; in EAS_Prepare()
828 result = (*pParserModule->pfPrepare)(pEASData, pStream->handle); in EAS_Prepare()
832 result = EAS_SetVolume(pEASData, pStream, pStream->volume); in EAS_Prepare()
1122 EAS_PUBLIC EAS_RESULT EAS_SetRepeat (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream, EAS_I32 repeatCo… in EAS_SetRepeat() argument
1124 pStream->repeatCount = repeatCount; in EAS_SetRepeat()
1150 EAS_PUBLIC EAS_RESULT EAS_GetRepeat (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream, EAS_I32 *pRepeat… in EAS_GetRepeat() argument
1152 *pRepeatCount = pStream->repeatCount; in EAS_GetRepeat()
1174 EAS_PUBLIC EAS_RESULT EAS_SetPlaybackRate (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream, EAS_U32 ra… in EAS_SetPlaybackRate() argument
1188 pStream->frameLength = (AUDIO_FRAME_LENGTH * (rate >> 8)) >> 20; in EAS_SetPlaybackRate()
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
1260 pParserModule = pStream->pParserModule; in EAS_ParseEvents()
1264 … if ((result = (*pParserModule->pfState)(pEASData, pStream->handle, &parserState)) != EAS_SUCCESS) in EAS_ParseEvents()
1268 pStream->time += pStream->frameLength; in EAS_ParseEvents()
1275 pStream->streamFlags &= ~STREAM_FLAGS_PARSED; in EAS_ParseEvents()
1283 … if ((result = (*pParserModule->pfState)(pEASData, pStream->handle, &parserState)) != EAS_SUCCESS) in EAS_ParseEvents()
1289 pStream->time = time << 8; 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()
1329 pStream->time = endTime; in EAS_ParseEvents()
1355 pStream->streamFlags |= STREAM_FLAGS_PARSED; in EAS_ParseEvents()
1378 EAS_PUBLIC EAS_RESULT EAS_ParseMetaData (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream, EAS_I32 *pla… in EAS_ParseMetaData() argument
1384 pParserModule = (S_FILE_PARSER_INTERFACE*) pStream->pParserModule; in EAS_ParseMetaData()
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()
1403 pStream->time = 0; 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()
1413 pStream->time = 0; in EAS_ParseMetaData()
1414 return (*pParserModule->pfReset)(pEASData, pStream->handle); in EAS_ParseMetaData()
1439 EAS_HANDLE pStream, 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
1495 pParserModule = (S_FILE_PARSER_INTERFACE*) pStream->pParserModule; in EAS_CloseFile()
1499 result = (*pParserModule->pfClose)(pEASData, pStream->handle); in EAS_CloseFile()
1502 pStream->handle = NULL; in EAS_CloseFile()
1503 pStream->pParserModule = NULL; in EAS_CloseFile()
1600 EAS_PUBLIC EAS_RESULT EAS_WriteMIDIStream (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream, EAS_U8 *pB… in EAS_WriteMIDIStream() argument
1605 pMIDIStream = (S_INTERACTIVE_MIDI*) pStream->handle; in EAS_WriteMIDIStream()
1636 EAS_PUBLIC EAS_RESULT EAS_CloseMIDIStream (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream) in EAS_CloseMIDIStream() argument
1640 pMIDIStream = (S_INTERACTIVE_MIDI*) pStream->handle; in EAS_CloseMIDIStream()
1653 pStream->handle = NULL; in EAS_CloseMIDIStream()
1674 EAS_PUBLIC EAS_RESULT EAS_State (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream, EAS_STATE *pState) in EAS_State() argument
1680 pParserModule = (S_FILE_PARSER_INTERFACE*) pStream->pParserModule; in EAS_State()
1684 if ((result = (*pParserModule->pfState)(pEASData, pStream->handle, pState)) != EAS_SUCCESS) in EAS_State()
1688 if (pStream->repeatCount && (*pState == EAS_STATE_STOPPED)) in EAS_State()
1696 if (pStream->streamFlags & STREAM_FLAGS_PAUSE) in EAS_State()
1698 if (pStream->streamFlags & STREAM_FLAGS_LOCATE) in EAS_State()
1705 if (pStream->streamFlags & STREAM_FLAGS_RESUME) 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()
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
1885 if (pStream != NULL) in EAS_SetVolume()
1890 if (!EAS_StreamReady(pEASData, pStream)) in EAS_SetVolume()
1894 pStream->volume = (EAS_U8) volume; 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()
1938 EAS_PUBLIC EAS_I32 EAS_GetVolume (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream) in EAS_GetVolume() argument
1940 if (pStream == NULL) in EAS_GetVolume()
1943 if (!EAS_StreamReady(pEASData, pStream)) in EAS_GetVolume()
1945 return pStream->volume; in EAS_GetVolume()
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
2022 pParserModule = (S_FILE_PARSER_INTERFACE*) pStream->pParserModule; in EAS_Locate()
2026 if ((result = (*pParserModule->pfState)(pEASData, pStream->handle, &state)) != EAS_SUCCESS) in EAS_Locate()
2034 milliseconds += (EAS_I32) pStream->time >> 8; in EAS_Locate()
2040 if (requestedTime == (pStream->time >> 8)) in EAS_Locate()
2044 pStream->streamFlags |= STREAM_FLAGS_LOCATE; in EAS_Locate()
2050 …result = pParserModule->pfLocate(pEASData, pStream->handle, (EAS_I32) requestedTime, &parserLocate… in EAS_Locate()
2054 pStream->time = requestedTime << 8; in EAS_Locate()
2060 …if (((state == EAS_STATE_PAUSING) || (state == EAS_STATE_PAUSED)) && ((pStream->streamFlags & STRE… in EAS_Locate()
2061 pStream->streamFlags |= STREAM_FLAGS_PAUSE; in EAS_Locate()
2064 if ((result = (*pParserModule->pfReset)(pEASData, pStream->handle)) != EAS_SUCCESS) in EAS_Locate()
2066 pStream->time = 0; 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()
2099 *pTime = pStream->time >> 8; in EAS_GetLocation()
2145 EAS_PUBLIC EAS_RESULT EAS_Pause (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream) in EAS_Pause() argument
2151 pParserModule = (S_FILE_PARSER_INTERFACE*) pStream->pParserModule; in EAS_Pause()
2156 result = pParserModule->pfState(pEASData, pStream->handle, &state); in EAS_Pause()
2159 …if ((state != EAS_STATE_PLAY) && (state != EAS_STATE_READY) && ((pStream->streamFlags & STREAM_FLA… in EAS_Pause()
2167 pStream->streamFlags &= ~STREAM_FLAGS_RESUME; in EAS_Pause()
2170 pStream->streamFlags |= STREAM_FLAGS_PAUSE; 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
2209 pParserModule = (S_FILE_PARSER_INTERFACE*) pStream->pParserModule; in EAS_Resume()
2214 result = pParserModule->pfState(pEASData, pStream->handle, &state); in EAS_Resume()
2217 …if ((state != EAS_STATE_PAUSED) && (state != EAS_STATE_PAUSING) && ((pStream->streamFlags & STREAM… in EAS_Resume()
2225 pStream->streamFlags &= ~STREAM_FLAGS_PAUSE; in EAS_Resume()
2228 pStream->streamFlags |= STREAM_FLAGS_RESUME; in EAS_Resume()
2233 result = pParserModule->pfResume(pEASData, pStream->handle); in EAS_Resume()
2380 EAS_PUBLIC EAS_RESULT EAS_SetSoundLibrary (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream, EAS_SNDLIB… in EAS_SetSoundLibrary() argument
2382 if (pStream) in EAS_SetSoundLibrary()
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()
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
2457 if (pStream != NULL) in EAS_LoadDLSCollection()
2459 if (!EAS_StreamReady(pEASData, pStream)) in EAS_LoadDLSCollection()
2475 if (pStream) in EAS_LoadDLSCollection()
2476 … result = EAS_IntSetStrmParam(pEASData, pStream, PARSER_DATA_DLS_COLLECTION, (EAS_I32) pDLS); in EAS_LoadDLSCollection()
2508 EAS_HANDLE pStream, 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()