Home | History | Annotate | Download | only in lib_src

Lines Matching refs:pEASData

63 static EAS_RESULT TC_CheckFileType (S_EAS_DATA *pEASData, EAS_FILE_HANDLE fileHandle, EAS_VOID_PTR *ppHandle, EAS_I32 offset);
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 value);
73 static EAS_RESULT TC_GetData (S_EAS_DATA *pEASData, EAS_VOID_PTR pInstData, EAS_I32 param, EAS_I32 *pValue);
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 note);
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);
124 * pEASData - pointer to overall EAS data structure
134 static EAS_RESULT TC_CheckFileType (S_EAS_DATA *pEASData, EAS_FILE_HANDLE fileHandle, EAS_VOID_PTR *ppHandle, EAS_I32 offset)
146 if (TC_ParseHeader(pEASData, &data) == EAS_SUCCESS)
150 if (pEASData->staticMemoryModel)
153 pData = EAS_HWMalloc(pEASData->hwInstData, sizeof(S_TC_DATA));
176 * pEASData - pointer to overall EAS data structure
186 static EAS_RESULT TC_Prepare (S_EAS_DATA *pEASData, EAS_VOID_PTR pInstData)
197 if ((result = VMInitMIDI(pEASData, &pData->pSynth)) != EAS_SUCCESS)
215 * pEASData - pointer to overall EAS data structure
226 /*lint -esym(715, pEASData) reserved for future use */
227 static EAS_RESULT TC_Time (S_EAS_DATA *pEASData, EAS_VOID_PTR pInstData, EAS_U32 *pTime)
246 * pEASData - pointer to overall EAS data structure
256 static EAS_RESULT TC_Event (S_EAS_DATA *pEASData, EAS_VOID_PTR pInstData, EAS_INT parserMode)
270 VMProgramChange(pEASData->pVoiceMgr, pData->pSynth, TC_CHANNEL, TC_PROGRAM);
273 VMControlChange(pEASData->pVoiceMgr, pData->pSynth, TC_CHANNEL, 7, 127);
280 VMStopNote(pEASData->pVoiceMgr, pData->pSynth, TC_CHANNEL, (EAS_U8) pData->note, 0);
288 VMStartNote(pEASData->pVoiceMgr, pData->pSynth, TC_CHANNEL, (EAS_U8) pData->note, pData->volume);
300 if ((result = TC_GetNextChar(pEASData->hwInstData, pData, &temp)) != EAS_SUCCESS)
313 result = TC_StartNote(pEASData, pData, parserMode, temp);
321 result = TC_GetTempo(pEASData, pData);
325 result = TC_GetResolution(pEASData, pData);
329 result = TC_GetVolume(pEASData, pData);
333 result = TC_GetRepeat(pEASData, pData, parserMode);
337 result = TC_PlayBlock(pEASData, pData);
341 result = TC_GetNextChar(pEASData->hwInstData, pData, &temp);
345 result = TC_BlockEnd(pEASData, pData);
377 * pEASData - pointer to overall EAS data structure
388 /*lint -esym(715, pEASData) reserved for future use */
389 static EAS_RESULT TC_State (S_EAS_DATA *pEASData, EAS_VOID_PTR pInstData, EAS_I32 *pState)
421 * pEASData - pointer to overall EAS data structure
431 static EAS_RESULT TC_Close (S_EAS_DATA *pEASData, EAS_VOID_PTR pInstData)
439 if ((result = EAS_HWCloseFile(pEASData->hwInstData, pData->fileHandle)) != EAS_SUCCESS)
444 VMMIDIShutdown(pEASData, pData->pSynth);
447 if (!pEASData->staticMemoryModel)
448 EAS_HWFree(pEASData->hwInstData, pData);
460 * pEASData - pointer to overall EAS data structure
470 static EAS_RESULT TC_Reset (S_EAS_DATA *pEASData, EAS_VOID_PTR pInstData)
478 VMReset(pEASData->pVoiceMgr, pData->pSynth, EAS_TRUE);
485 if ((result = EAS_HWFileSeek(pEASData->hwInstData, pData->fileHandle, pData->fileOffset)) != EAS_SUCCESS)
487 if ((result = TC_ParseHeader (pEASData, pData)) != EAS_SUCCESS)
501 * pEASData - pointer to overall EAS data structure
511 static EAS_RESULT TC_Pause (S_EAS_DATA *pEASData, EAS_VOID_PTR pInstData)
521 VMMuteAllVoices(pEASData->pVoiceMgr, pData->pSynth);
533 * pEASData - pointer to overall EAS data structure
543 /*lint -esym(715, pEASData) reserved for future use */
544 static EAS_RESULT TC_Resume (S_EAS_DATA *pEASData, EAS_VOID_PTR pInstData)
565 * pEASData - pointer to overall EAS data structure
575 /*lint -esym(715, pEASData, pInstData, value) reserved for future use */
576 static EAS_RESULT TC_SetData (S_EAS_DATA *pEASData, EAS_VOID_PTR pInstData, EAS_I32 param, EAS_I32 value)
592 * pEASData - pointer to overall EAS data structure
603 static EAS_RESULT TC_GetData (S_EAS_DATA *pEASData, EAS_VOID_PTR pInstData, EAS_I32 param, EAS_I32 *pValue)
633 * pEASData - pointer to overall EAS data structure
643 static EAS_RESULT TC_ParseHeader (S_EAS_DATA *pEASData, S_TC_DATA* pData)
661 if ((result = EAS_HWFileSeek(pEASData->hwInstData, pData->fileHandle, pData->fileOffset)) != EAS_SUCCESS)
665 if ((result = TC_GetNextChar(pEASData->hwInstData, pData, &temp)) != EAS_SUCCESS)
671 TC_GetNextChar(pEASData->hwInstData, pData, &temp);
682 if ((result = TC_GetNextChar(pEASData->hwInstData, pData, &temp)) != EAS_SUCCESS)
688 if ((result = TC_GetTempo(pEASData, pData)) != EAS_SUCCESS)
695 if ((result = TC_GetResolution(pEASData, pData)) != EAS_SUCCESS)
721 static EAS_RESULT TC_StartNote (S_EAS_DATA *pEASData, S_TC_DATA* pData, EAS_INT parserMode, EAS_I8 note)
726 if (TC_GetNextChar(pEASData->hwInstData, pData, &duration) != EAS_SUCCESS)
736 VMStartNote(pEASData->pVoiceMgr, pData->pSynth, TC_CHANNEL, (EAS_U8) note, pData->volume);
749 static EAS_RESULT TC_GetRepeat (S_EAS_DATA *pEASData, S_TC_DATA* pData, EAS_INT parserMode)
754 if (TC_GetNextChar(pEASData->hwInstData, pData, &count) != EAS_SUCCESS)
767 VMStartNote(pEASData->pVoiceMgr, pData->pSynth, TC_CHANNEL, (EAS_U8) pData->note, pData->volume);
778 static EAS_RESULT TC_PlayBlock (S_EAS_DATA *pEASData, S_TC_DATA* pData)
786 if (TC_GetNextChar(pEASData->hwInstData, pData, &blockNum) != EAS_SUCCESS)
794 if ((result = EAS_HWFilePos(pEASData->hwInstData, pData->fileHandle, &pData->restorePos)) != EAS_SUCCESS)
799 if ((result = EAS_HWFileSeek(pEASData->hwInstData, pData->fileHandle, pData->fileOffset)) != EAS_SUCCESS)
805 if (TC_GetNextChar(pEASData->hwInstData, pData, &temp) != EAS_SUCCESS)
808 if (TC_GetNextChar(pEASData->hwInstData, pData, &temp2) != EAS_SUCCESS)
822 static EAS_RESULT TC_BlockEnd (S_EAS_DATA *pEASData, S_TC_DATA* pData)
827 if (TC_GetNextChar(pEASData->hwInstData, pData, &blockNum) != EAS_SUCCESS)
836 return EAS_HWFileSeek(pEASData->hwInstData, pData->fileHandle, pData->restorePos);
845 static EAS_RESULT TC_GetVolume (S_EAS_DATA *pEASData, S_TC_DATA* pData)
850 if (TC_GetNextChar(pEASData->hwInstData, pData, &volume) != EAS_SUCCESS)
866 static EAS_RESULT TC_GetTempo (S_EAS_DATA *pEASData, S_TC_DATA* pData)
871 if (TC_GetNextChar(pEASData->hwInstData, pData, &tempo) != EAS_SUCCESS)
890 static EAS_RESULT TC_GetResolution (S_EAS_DATA *pEASData, S_TC_DATA* pData)
895 if (TC_GetNextChar(pEASData->hwInstData, pData, &resolution) != EAS_SUCCESS)