• Home
  • Raw
  • Download

Lines Matching refs:pEASData

122 static EAS_RESULT IMY_CheckFileType (S_EAS_DATA *pEASData, EAS_FILE_HANDLE fileHandle, EAS_VOID_PTR…
123 static EAS_RESULT IMY_Prepare (S_EAS_DATA *pEASData, EAS_VOID_PTR pInstData);
124 static EAS_RESULT IMY_Time (S_EAS_DATA *pEASData, EAS_VOID_PTR pInstData, EAS_U32 *pTime);
125 static EAS_RESULT IMY_Event (S_EAS_DATA *pEASData, EAS_VOID_PTR pInstData, EAS_INT parserMode);
126 static EAS_RESULT IMY_State (S_EAS_DATA *pEASData, EAS_VOID_PTR pInstData, EAS_STATE *pState);
127 static EAS_RESULT IMY_Close (S_EAS_DATA *pEASData, EAS_VOID_PTR pInstData);
128 static EAS_RESULT IMY_Reset (S_EAS_DATA *pEASData, EAS_VOID_PTR pInstData);
129 static EAS_RESULT IMY_Pause (S_EAS_DATA *pEASData, EAS_VOID_PTR pInstData);
130 static EAS_RESULT IMY_Resume (S_EAS_DATA *pEASData, EAS_VOID_PTR pInstData);
131 static EAS_RESULT IMY_SetData (S_EAS_DATA *pEASData, EAS_VOID_PTR pInstData, EAS_I32 param, EAS_I32…
132 static EAS_RESULT IMY_GetData (S_EAS_DATA *pEASData, EAS_VOID_PTR pInstData, EAS_I32 param, EAS_I32…
133 static EAS_BOOL IMY_PlayNote (S_EAS_DATA *pEASData, S_IMELODY_DATA *pData, EAS_I8 note, EAS_INT par…
134 static EAS_BOOL IMY_PlayRest (S_EAS_DATA *pEASData, S_IMELODY_DATA *pData);
136 static EAS_BOOL IMY_GetLEDState (S_EAS_DATA *pEASData, S_IMELODY_DATA *pData);
137 static EAS_BOOL IMY_GetVibeState (S_EAS_DATA *pEASData, S_IMELODY_DATA *pData);
138 static EAS_BOOL IMY_GetBackState (S_EAS_DATA *pEASData, S_IMELODY_DATA *pData);
141 static EAS_RESULT IMY_ParseHeader (S_EAS_DATA *pEASData, S_IMELODY_DATA* pData);
188 static EAS_RESULT IMY_CheckFileType (S_EAS_DATA *pEASData, EAS_FILE_HANDLE fileHandle, EAS_VOID_PTR… in IMY_CheckFileType() argument
200 if (IMY_ReadLine(pEASData->hwInstData, fileHandle, buffer, NULL) != EAS_SUCCESS) in IMY_CheckFileType()
208 if (pEASData->staticMemoryModel) in IMY_CheckFileType()
211 pData = EAS_HWMalloc(pEASData->hwInstData, sizeof(S_IMELODY_DATA)); in IMY_CheckFileType()
247 static EAS_RESULT IMY_Prepare (S_EAS_DATA *pEASData, EAS_VOID_PTR pInstData) in IMY_Prepare() argument
262 if ((result = VMInitMIDI(pEASData, &pData->pSynth)) != EAS_SUCCESS) in IMY_Prepare()
269 if ((result = IMY_ParseHeader(pEASData, pData)) != EAS_SUCCESS) in IMY_Prepare()
299 static EAS_RESULT IMY_Time (S_EAS_DATA *pEASData, EAS_VOID_PTR pInstData, EAS_U32 *pTime) in IMY_Time() argument
328 static EAS_RESULT IMY_Event (S_EAS_DATA *pEASData, EAS_VOID_PTR pInstData, EAS_INT parserMode) in IMY_Event() argument
352 VMProgramChange(pEASData->pVoiceMgr, pData->pSynth, IMELODY_CHANNEL, IMELODY_PROGRAM); in IMY_Event()
355 VMControlChange(pEASData->pVoiceMgr, pData->pSynth, IMELODY_CHANNEL, 7, 127); in IMY_Event()
366 VMStopNote(pEASData->pVoiceMgr, pData->pSynth, IMELODY_CHANNEL, pData->note, 0); in IMY_Event()
384 c = IMY_GetNextChar(pEASData->hwInstData, pData, EAS_FALSE); in IMY_Event()
443 …if ((result = EAS_HWFileSeek(pEASData->hwInstData, pData->fileHandle, pData->repeatOffset)) != EAS… in IMY_Event()
445 … IMY_ReadLine(pEASData->hwInstData, pData->fileHandle, pData->buffer, &pData->startLine); in IMY_Event()
457 if (!IMY_GetNumber(pEASData->hwInstData, pData, &temp, EAS_FALSE)) in IMY_Event()
472 if (!IMY_GetVolume(pEASData->hwInstData, pData, EAS_FALSE)) in IMY_Event()
488 c = IMY_GetNextChar(pEASData->hwInstData, pData, EAS_FALSE); in IMY_Event()
497 if (!IMY_GetLEDState(pEASData, pData)) in IMY_Event()
503 if (!IMY_GetVibeState(pEASData, pData)) in IMY_Event()
509 if (IMY_GetNextChar(pEASData->hwInstData, pData, EAS_FALSE) == 'a') in IMY_Event()
511 if (!IMY_GetBackState(pEASData, pData)) in IMY_Event()
517 if (IMY_PlayNote(pEASData, pData, c, parserMode)) in IMY_Event()
526 if (IMY_PlayRest(pEASData, pData)) in IMY_Event()
544 if (IMY_PlayNote(pEASData, pData, c, parserMode)) in IMY_Event()
559 VMReleaseAllVoices(pEASData->pVoiceMgr, pData->pSynth); in IMY_Event()
582 static EAS_RESULT IMY_State (S_EAS_DATA *pEASData, EAS_VOID_PTR pInstData, EAS_I32 *pState) in IMY_State() argument
634 static EAS_RESULT IMY_Close (S_EAS_DATA *pEASData, EAS_VOID_PTR pInstData) in IMY_Close() argument
646 if ((result = EAS_HWCloseFile(pEASData->hwInstData, pData->fileHandle)) != EAS_SUCCESS) in IMY_Close()
651 VMMIDIShutdown(pEASData, pData->pSynth); in IMY_Close()
654 if (!pEASData->staticMemoryModel) in IMY_Close()
655 EAS_HWFree(pEASData->hwInstData, pData); in IMY_Close()
677 static EAS_RESULT IMY_Reset (S_EAS_DATA *pEASData, EAS_VOID_PTR pInstData) in IMY_Reset() argument
688 VMReset(pEASData->pVoiceMgr, pData->pSynth, EAS_TRUE); in IMY_Reset()
696 …if ((result = EAS_HWFileSeek(pEASData->hwInstData, pData->fileHandle, pData->fileOffset)) != EAS_S… in IMY_Reset()
698 if ((result = IMY_ParseHeader (pEASData, pData)) != EAS_SUCCESS) in IMY_Reset()
726 static EAS_RESULT IMY_Pause (S_EAS_DATA *pEASData, EAS_VOID_PTR pInstData) in IMY_Pause() argument
740 VMMuteAllVoices(pEASData->pVoiceMgr, pData->pSynth); in IMY_Pause()
763 static EAS_RESULT IMY_Resume (S_EAS_DATA *pEASData, EAS_VOID_PTR pInstData) in IMY_Resume() argument
800 static EAS_RESULT IMY_SetData (S_EAS_DATA *pEASData, EAS_VOID_PTR pInstData, EAS_I32 param, EAS_I32… in IMY_SetData() argument
838 static EAS_RESULT IMY_GetData (S_EAS_DATA *pEASData, EAS_VOID_PTR pInstData, EAS_I32 param, EAS_I32… in IMY_GetData() argument
882 static EAS_BOOL IMY_PlayNote (S_EAS_DATA *pEASData, S_IMELODY_DATA *pData, EAS_I8 note, EAS_INT par… in IMY_PlayNote() argument
893 if (!IMY_GetDuration(pEASData->hwInstData, pData, &duration)) in IMY_PlayNote()
902 VMStartNote(pEASData->pVoiceMgr, pData->pSynth, IMELODY_CHANNEL, pData->note, velocity); in IMY_PlayNote()
954 static EAS_BOOL IMY_PlayRest (S_EAS_DATA *pEASData, S_IMELODY_DATA *pData) in IMY_PlayRest() argument
963 if (!IMY_GetDuration(pEASData->hwInstData, pData, &duration)) in IMY_PlayRest()
1050 static EAS_BOOL IMY_GetLEDState (S_EAS_DATA *pEASData, S_IMELODY_DATA *pData) in IMY_GetLEDState() argument
1061 c = IMY_GetNextChar(pEASData->hwInstData, pData, EAS_FALSE); in IMY_GetLEDState()
1072 EAS_HWLED(pEASData->hwInstData, EAS_TRUE); in IMY_GetLEDState()
1085 EAS_HWLED(pEASData->hwInstData, EAS_FALSE); in IMY_GetLEDState()
1115 static EAS_BOOL IMY_GetVibeState (S_EAS_DATA *pEASData, S_IMELODY_DATA *pData) in IMY_GetVibeState() argument
1126 c = IMY_GetNextChar(pEASData->hwInstData, pData, EAS_FALSE); in IMY_GetVibeState()
1137 EAS_HWVibrate(pEASData->hwInstData, EAS_TRUE); in IMY_GetVibeState()
1150 EAS_HWVibrate(pEASData->hwInstData, EAS_FALSE); in IMY_GetVibeState()
1180 static EAS_BOOL IMY_GetBackState (S_EAS_DATA *pEASData, S_IMELODY_DATA *pData) in IMY_GetBackState() argument
1191 c = IMY_GetNextChar(pEASData->hwInstData, pData, EAS_FALSE); in IMY_GetBackState()
1202 EAS_HWBackLight(pEASData->hwInstData, EAS_TRUE); in IMY_GetBackState()
1215 EAS_HWBackLight(pEASData->hwInstData, EAS_FALSE); in IMY_GetBackState()
1438 static EAS_RESULT IMY_ParseHeader (S_EAS_DATA *pEASData, S_IMELODY_DATA* pData) in IMY_ParseHeader() argument
1470 …if ((result = IMY_ReadLine(pEASData->hwInstData, pData->fileHandle, pData->buffer, &pData->startLi… in IMY_ParseHeader()
1522 IMY_GetNumber(pEASData->hwInstData, pData, &temp, EAS_TRUE); in IMY_ParseHeader()
1529 c = IMY_GetNextChar(pEASData->hwInstData, pData, EAS_TRUE); in IMY_ParseHeader()
1531 c = IMY_GetNextChar(pEASData->hwInstData, pData, EAS_TRUE); in IMY_ParseHeader()
1543 c = IMY_GetNextChar(pEASData->hwInstData, pData, EAS_TRUE); in IMY_ParseHeader()
1553 IMY_GetVolume(pEASData->hwInstData, pData, EAS_TRUE); in IMY_ParseHeader()