Lines Matching refs:pEASData
63 static EAS_RESULT TC_CheckFileType (S_EAS_DATA *pEASData, EAS_FILE_HANDLE fileHandle, EAS_VOID_PTR …
64 static EAS_RESULT TC_Prepare (S_EAS_DATA *pEASData, EAS_VOID_PTR pInstData);
65 static EAS_RESULT TC_Time (S_EAS_DATA *pEASData, EAS_VOID_PTR pInstData, EAS_U32 *pTime);
66 static EAS_RESULT TC_Event (S_EAS_DATA *pEASData, EAS_VOID_PTR pInstData, EAS_INT parserMode);
67 static EAS_RESULT TC_State (S_EAS_DATA *pEASData, EAS_VOID_PTR pInstData, EAS_STATE *pState);
68 static EAS_RESULT TC_Close (S_EAS_DATA *pEASData, EAS_VOID_PTR pInstData);
69 static EAS_RESULT TC_Reset (S_EAS_DATA *pEASData, EAS_VOID_PTR pInstData);
70 static EAS_RESULT TC_Pause (S_EAS_DATA *pEASData, EAS_VOID_PTR pInstData);
71 static EAS_RESULT TC_Resume (S_EAS_DATA *pEASData, EAS_VOID_PTR pInstData);
72 static EAS_RESULT TC_SetData (S_EAS_DATA *pEASData, EAS_VOID_PTR pInstData, EAS_I32 param, EAS_I32 …
73 static EAS_RESULT TC_GetData (S_EAS_DATA *pEASData, EAS_VOID_PTR pInstData, EAS_I32 param, EAS_I32 …
74 static EAS_RESULT TC_ParseHeader (S_EAS_DATA *pEASData, S_TC_DATA* pData);
75 static EAS_RESULT TC_StartNote (S_EAS_DATA *pEASData, S_TC_DATA* pData, EAS_INT parserMode, EAS_I8 …
76 static EAS_RESULT TC_GetRepeat (S_EAS_DATA *pEASData, S_TC_DATA* pData, EAS_INT parserMode);
77 static EAS_RESULT TC_PlayBlock (S_EAS_DATA *pEASData, S_TC_DATA* pData);
78 static EAS_RESULT TC_BlockEnd (S_EAS_DATA *pEASData, S_TC_DATA* pData);
79 static EAS_RESULT TC_GetVolume (S_EAS_DATA *pEASData, S_TC_DATA* pData);
80 static EAS_RESULT TC_GetTempo (S_EAS_DATA *pEASData, S_TC_DATA* pData);
81 static EAS_RESULT TC_GetResolution (S_EAS_DATA *pEASData, S_TC_DATA* pData);
134 static EAS_RESULT TC_CheckFileType (S_EAS_DATA *pEASData, EAS_FILE_HANDLE fileHandle, EAS_VOID_PTR … in TC_CheckFileType() argument
146 if (TC_ParseHeader(pEASData, &data) == EAS_SUCCESS) in TC_CheckFileType()
150 if (pEASData->staticMemoryModel) in TC_CheckFileType()
153 pData = EAS_HWMalloc(pEASData->hwInstData, sizeof(S_TC_DATA)); in TC_CheckFileType()
186 static EAS_RESULT TC_Prepare (S_EAS_DATA *pEASData, EAS_VOID_PTR pInstData) in TC_Prepare() argument
197 if ((result = VMInitMIDI(pEASData, &pData->pSynth)) != EAS_SUCCESS) in TC_Prepare()
227 static EAS_RESULT TC_Time (S_EAS_DATA *pEASData, EAS_VOID_PTR pInstData, EAS_U32 *pTime) in TC_Time() argument
256 static EAS_RESULT TC_Event (S_EAS_DATA *pEASData, EAS_VOID_PTR pInstData, EAS_INT parserMode) in TC_Event() argument
270 VMProgramChange(pEASData->pVoiceMgr, pData->pSynth, TC_CHANNEL, TC_PROGRAM); in TC_Event()
273 VMControlChange(pEASData->pVoiceMgr, pData->pSynth, TC_CHANNEL, 7, 127); in TC_Event()
280 VMStopNote(pEASData->pVoiceMgr, pData->pSynth, TC_CHANNEL, (EAS_U8) pData->note, 0); in TC_Event()
288 … VMStartNote(pEASData->pVoiceMgr, pData->pSynth, TC_CHANNEL, (EAS_U8) pData->note, pData->volume); in TC_Event()
300 if ((result = TC_GetNextChar(pEASData->hwInstData, pData, &temp)) != EAS_SUCCESS) in TC_Event()
313 result = TC_StartNote(pEASData, pData, parserMode, temp); in TC_Event()
321 result = TC_GetTempo(pEASData, pData); in TC_Event()
325 result = TC_GetResolution(pEASData, pData); in TC_Event()
329 result = TC_GetVolume(pEASData, pData); in TC_Event()
333 result = TC_GetRepeat(pEASData, pData, parserMode); in TC_Event()
337 result = TC_PlayBlock(pEASData, pData); in TC_Event()
341 result = TC_GetNextChar(pEASData->hwInstData, pData, &temp); in TC_Event()
345 result = TC_BlockEnd(pEASData, pData); in TC_Event()
389 static EAS_RESULT TC_State (S_EAS_DATA *pEASData, EAS_VOID_PTR pInstData, EAS_I32 *pState) in TC_State() argument
431 static EAS_RESULT TC_Close (S_EAS_DATA *pEASData, EAS_VOID_PTR pInstData) in TC_Close() argument
439 if ((result = EAS_HWCloseFile(pEASData->hwInstData, pData->fileHandle)) != EAS_SUCCESS) in TC_Close()
444 VMMIDIShutdown(pEASData, pData->pSynth); in TC_Close()
447 if (!pEASData->staticMemoryModel) in TC_Close()
448 EAS_HWFree(pEASData->hwInstData, pData); in TC_Close()
470 static EAS_RESULT TC_Reset (S_EAS_DATA *pEASData, EAS_VOID_PTR pInstData) in TC_Reset() argument
478 VMReset(pEASData->pVoiceMgr, pData->pSynth, EAS_TRUE); in TC_Reset()
485 …if ((result = EAS_HWFileSeek(pEASData->hwInstData, pData->fileHandle, pData->fileOffset)) != EAS_S… in TC_Reset()
487 if ((result = TC_ParseHeader (pEASData, pData)) != EAS_SUCCESS) in TC_Reset()
511 static EAS_RESULT TC_Pause (S_EAS_DATA *pEASData, EAS_VOID_PTR pInstData) in TC_Pause() argument
521 VMMuteAllVoices(pEASData->pVoiceMgr, pData->pSynth); in TC_Pause()
544 static EAS_RESULT TC_Resume (S_EAS_DATA *pEASData, EAS_VOID_PTR pInstData) in TC_Resume() argument
576 static EAS_RESULT TC_SetData (S_EAS_DATA *pEASData, EAS_VOID_PTR pInstData, EAS_I32 param, EAS_I32 … in TC_SetData() argument
603 static EAS_RESULT TC_GetData (S_EAS_DATA *pEASData, EAS_VOID_PTR pInstData, EAS_I32 param, EAS_I32 … in TC_GetData() argument
643 static EAS_RESULT TC_ParseHeader (S_EAS_DATA *pEASData, S_TC_DATA* pData) in TC_ParseHeader() argument
661 …if ((result = EAS_HWFileSeek(pEASData->hwInstData, pData->fileHandle, pData->fileOffset)) != EAS_S… in TC_ParseHeader()
665 if ((result = TC_GetNextChar(pEASData->hwInstData, pData, &temp)) != EAS_SUCCESS) in TC_ParseHeader()
671 TC_GetNextChar(pEASData->hwInstData, pData, &temp); in TC_ParseHeader()
682 if ((result = TC_GetNextChar(pEASData->hwInstData, pData, &temp)) != EAS_SUCCESS) in TC_ParseHeader()
688 if ((result = TC_GetTempo(pEASData, pData)) != EAS_SUCCESS) in TC_ParseHeader()
695 if ((result = TC_GetResolution(pEASData, pData)) != EAS_SUCCESS) in TC_ParseHeader()
721 static EAS_RESULT TC_StartNote (S_EAS_DATA *pEASData, S_TC_DATA* pData, EAS_INT parserMode, EAS_I8 … in TC_StartNote() argument
726 if (TC_GetNextChar(pEASData->hwInstData, pData, &duration) != EAS_SUCCESS) in TC_StartNote()
736 VMStartNote(pEASData->pVoiceMgr, pData->pSynth, TC_CHANNEL, (EAS_U8) note, pData->volume); in TC_StartNote()
749 static EAS_RESULT TC_GetRepeat (S_EAS_DATA *pEASData, S_TC_DATA* pData, EAS_INT parserMode) in TC_GetRepeat() argument
754 if (TC_GetNextChar(pEASData->hwInstData, pData, &count) != EAS_SUCCESS) in TC_GetRepeat()
767 … VMStartNote(pEASData->pVoiceMgr, pData->pSynth, TC_CHANNEL, (EAS_U8) pData->note, pData->volume); in TC_GetRepeat()
778 static EAS_RESULT TC_PlayBlock (S_EAS_DATA *pEASData, S_TC_DATA* pData) in TC_PlayBlock() argument
786 if (TC_GetNextChar(pEASData->hwInstData, pData, &blockNum) != EAS_SUCCESS) in TC_PlayBlock()
794 …if ((result = EAS_HWFilePos(pEASData->hwInstData, pData->fileHandle, &pData->restorePos)) != EAS_S… in TC_PlayBlock()
799 …if ((result = EAS_HWFileSeek(pEASData->hwInstData, pData->fileHandle, pData->fileOffset)) != EAS_S… in TC_PlayBlock()
805 if (TC_GetNextChar(pEASData->hwInstData, pData, &temp) != EAS_SUCCESS) in TC_PlayBlock()
808 if (TC_GetNextChar(pEASData->hwInstData, pData, &temp2) != EAS_SUCCESS) in TC_PlayBlock()
822 static EAS_RESULT TC_BlockEnd (S_EAS_DATA *pEASData, S_TC_DATA* pData) in TC_BlockEnd() argument
827 if (TC_GetNextChar(pEASData->hwInstData, pData, &blockNum) != EAS_SUCCESS) in TC_BlockEnd()
836 return EAS_HWFileSeek(pEASData->hwInstData, pData->fileHandle, pData->restorePos); in TC_BlockEnd()
845 static EAS_RESULT TC_GetVolume (S_EAS_DATA *pEASData, S_TC_DATA* pData) in TC_GetVolume() argument
850 if (TC_GetNextChar(pEASData->hwInstData, pData, &volume) != EAS_SUCCESS) in TC_GetVolume()
866 static EAS_RESULT TC_GetTempo (S_EAS_DATA *pEASData, S_TC_DATA* pData) in TC_GetTempo() argument
871 if (TC_GetNextChar(pEASData->hwInstData, pData, &tempo) != EAS_SUCCESS) in TC_GetTempo()
890 static EAS_RESULT TC_GetResolution (S_EAS_DATA *pEASData, S_TC_DATA* pData) in TC_GetResolution() argument
895 if (TC_GetNextChar(pEASData->hwInstData, pData, &resolution) != EAS_SUCCESS) in TC_GetResolution()