Lines Matching refs:pMIDIStream

72 …cessMIDIMessage (S_EAS_DATA *pEASData, S_SYNTH *pSynth, S_MIDI_STREAM *pMIDIStream, EAS_INT parser…
73 …essSysExMessage (S_EAS_DATA *pEASData, S_SYNTH *pSynth, S_MIDI_STREAM *pMIDIStream, EAS_U8 c, EAS_…
90 void EAS_InitMIDIStream (S_MIDI_STREAM *pMIDIStream) in EAS_InitMIDIStream() argument
92 pMIDIStream->byte3 = EAS_FALSE; in EAS_InitMIDIStream()
93 pMIDIStream->pending = EAS_FALSE; in EAS_InitMIDIStream()
94 pMIDIStream->runningStatus = 0; in EAS_InitMIDIStream()
95 pMIDIStream->status = 0; in EAS_InitMIDIStream()
115 EAS_RESULT EAS_ParseMIDIStream (S_EAS_DATA *pEASData, S_SYNTH *pSynth, S_MIDI_STREAM *pMIDIStream, … in EAS_ParseMIDIStream() argument
124 pMIDIStream->runningStatus = c; in EAS_ParseMIDIStream()
125 pMIDIStream->byte3 = EAS_FALSE; in EAS_ParseMIDIStream()
132 return ProcessSysExMessage(pEASData, pSynth, pMIDIStream, c, parserMode); in EAS_ParseMIDIStream()
137 pMIDIStream->pending = EAS_TRUE; in EAS_ParseMIDIStream()
145 if (pMIDIStream->byte3) in EAS_ParseMIDIStream()
147 pMIDIStream->d2 = c; in EAS_ParseMIDIStream()
148 pMIDIStream->byte3 = EAS_FALSE; in EAS_ParseMIDIStream()
149 pMIDIStream->pending = EAS_FALSE; in EAS_ParseMIDIStream()
152 return ProcessMIDIMessage(pEASData, pSynth, pMIDIStream, parserMode); in EAS_ParseMIDIStream()
156 if (pMIDIStream->runningStatus) in EAS_ParseMIDIStream()
160 pMIDIStream->status = pMIDIStream->runningStatus; in EAS_ParseMIDIStream()
163 if (pMIDIStream->status < 0xc0) in EAS_ParseMIDIStream()
165 pMIDIStream->d1 = c; in EAS_ParseMIDIStream()
166 pMIDIStream->pending = EAS_TRUE; in EAS_ParseMIDIStream()
167 pMIDIStream->byte3 = EAS_TRUE; in EAS_ParseMIDIStream()
172 if (pMIDIStream->status < 0xe0) in EAS_ParseMIDIStream()
174 pMIDIStream->d1 = c; in EAS_ParseMIDIStream()
175 pMIDIStream->pending = EAS_FALSE; in EAS_ParseMIDIStream()
178 return ProcessMIDIMessage(pEASData, pSynth, pMIDIStream, parserMode); in EAS_ParseMIDIStream()
182 if (pMIDIStream->status < 0xf0) in EAS_ParseMIDIStream()
184 pMIDIStream->d1 = c; in EAS_ParseMIDIStream()
185 pMIDIStream->pending = EAS_TRUE; in EAS_ParseMIDIStream()
186 pMIDIStream->byte3 = EAS_TRUE; in EAS_ParseMIDIStream()
191 if (pMIDIStream->status == 0xF0) in EAS_ParseMIDIStream()
195 return ProcessSysExMessage(pEASData, pSynth, pMIDIStream, c, parserMode); in EAS_ParseMIDIStream()
199 pMIDIStream->runningStatus = 0; in EAS_ParseMIDIStream()
202 if (pMIDIStream->status == 0xf2) in EAS_ParseMIDIStream()
204 pMIDIStream->byte3 = EAS_TRUE; in EAS_ParseMIDIStream()
211 pMIDIStream->pending = EAS_FALSE; in EAS_ParseMIDIStream()
232 …cessMIDIMessage (S_EAS_DATA *pEASData, S_SYNTH *pSynth, S_MIDI_STREAM *pMIDIStream, EAS_INT parser… in ProcessMIDIMessage() argument
236 channel = pMIDIStream->status & 0x0f; in ProcessMIDIMessage()
237 switch (pMIDIStream->status & 0xf0) in ProcessMIDIMessage()
243 VMStopNote(pEASData->pVoiceMgr, pSynth, channel, pMIDIStream->d1, pMIDIStream->d2); in ProcessMIDIMessage()
247 if (pMIDIStream->d2) in ProcessMIDIMessage()
251 pMIDIStream->flags |= MIDI_FLAG_FIRST_NOTE; in ProcessMIDIMessage()
253 VMStartNote(pEASData->pVoiceMgr, pSynth, channel, pMIDIStream->d1, pMIDIStream->d2); in ProcessMIDIMessage()
260 VMStopNote(pEASData->pVoiceMgr, pSynth, channel, pMIDIStream->d1, pMIDIStream->d2); in ProcessMIDIMessage()
273 VMControlChange(pEASData->pVoiceMgr, pSynth, channel, pMIDIStream->d1, pMIDIStream->d2); in ProcessMIDIMessage()
275 if (pMIDIStream->jetData & MIDI_FLAGS_JET_CB) in ProcessMIDIMessage()
277 JET_Event(pEASData, pMIDIStream->jetData & (JET_EVENT_SEG_MASK | JET_EVENT_TRACK_MASK), in ProcessMIDIMessage()
278 channel, pMIDIStream->d1, pMIDIStream->d2); in ProcessMIDIMessage()
287 VMProgramChange(pEASData->pVoiceMgr, pSynth, channel, pMIDIStream->d1); in ProcessMIDIMessage()
294 VMChannelPressure(pSynth, channel, pMIDIStream->d1); in ProcessMIDIMessage()
301 VMPitchBend(pSynth, channel, pMIDIStream->d1, pMIDIStream->d2); in ProcessMIDIMessage()
344 …essSysExMessage (S_EAS_DATA *pEASData, S_SYNTH *pSynth, S_MIDI_STREAM *pMIDIStream, EAS_U8 c, EAS_… in ProcessSysExMessage() argument
350 pMIDIStream->sysExState = eSysEx; in ProcessSysExMessage()
356 if ((pMIDIStream->sysExState == eSysExSPMIDIchan) && (parserMode != eParserModeMetaData)) in ProcessSysExMessage()
358 pMIDIStream->sysExState = eSysExIgnore; in ProcessSysExMessage()
364 switch (pMIDIStream->sysExState) in ProcessSysExMessage()
372 pMIDIStream->sysExState = eSysExUnivNonRealTime; in ProcessSysExMessage()
375 pMIDIStream->sysExState = eSysExUnivRealTime; in ProcessSysExMessage()
378 pMIDIStream->sysExState = eSysExMfgID1; in ProcessSysExMessage()
381 pMIDIStream->sysExState = eSysExIgnore; in ProcessSysExMessage()
389 pMIDIStream->sysExState = eSysExUnivNrtTargetID; in ProcessSysExMessage()
391 pMIDIStream->sysExState = eSysExIgnore; in ProcessSysExMessage()
396 pMIDIStream->sysExState = eSysExGMControl; in ProcessSysExMessage()
398 pMIDIStream->sysExState = eSysExIgnore; in ProcessSysExMessage()
407 pMIDIStream->flags |= MIDI_FLAG_GM_ON; in ProcessSysExMessage()
411 pMIDIStream->sysExState = eSysExEOX; in ProcessSysExMessage()
414 pMIDIStream->sysExState = eSysExIgnore; in ProcessSysExMessage()
420 pMIDIStream->sysExState = eSysExUnivRtTargetID; in ProcessSysExMessage()
422 pMIDIStream->sysExState = eSysExIgnore; in ProcessSysExMessage()
427 pMIDIStream->sysExState = eSysExDeviceControl; in ProcessSysExMessage()
429 pMIDIStream->sysExState = eSysExSPMIDI; in ProcessSysExMessage()
431 pMIDIStream->sysExState = eSysExIgnore; in ProcessSysExMessage()
437 pMIDIStream->sysExState = eSysExMasterVolume; in ProcessSysExMessage()
439 pMIDIStream->sysExState = eSysExIgnore; in ProcessSysExMessage()
444 pMIDIStream->d1 = c; in ProcessSysExMessage()
445 pMIDIStream->sysExState = eSysExMasterVolLSB; in ProcessSysExMessage()
451 EAS_I32 gain = ((EAS_I32) c << 8) | ((EAS_I32) pMIDIStream->d1 << 1); in ProcessSysExMessage()
455 pMIDIStream->sysExState = eSysExEOX; in ProcessSysExMessage()
465 pMIDIStream->d1 = 0; in ProcessSysExMessage()
466 pMIDIStream->sysExState = eSysExSPMIDIchan; in ProcessSysExMessage()
469 pMIDIStream->sysExState = eSysExIgnore; in ProcessSysExMessage()
475 pMIDIStream->d2 = c; in ProcessSysExMessage()
476 pMIDIStream->sysExState = eSysExSPMIDIMIP; in ProcessSysExMessage()
483 pMIDIStream->sysExState = eSysExIgnore; in ProcessSysExMessage()
490 VMSetMIPEntry(pEASData->pVoiceMgr, pSynth, pMIDIStream->d2, pMIDIStream->d1, c); in ProcessSysExMessage()
491 pMIDIStream->sysExState = eSysExSPMIDIchan; in ProcessSysExMessage()
494 if (++pMIDIStream->d1 == NUM_SYNTH_CHANNELS) in ProcessSysExMessage()
498 pMIDIStream->sysExState = eSysExEOX; in ProcessSysExMessage()
505 pMIDIStream->sysExState = eSysExMfgID1; in ProcessSysExMessage()
507 pMIDIStream->sysExState = eSysExIgnore; in ProcessSysExMessage()
512 pMIDIStream->sysExState = eSysExMfgID1; in ProcessSysExMessage()
514 pMIDIStream->sysExState = eSysExIgnore; in ProcessSysExMessage()
519 pMIDIStream->sysExState = eSysExEnhancer; in ProcessSysExMessage()
521 pMIDIStream->sysExState = eSysExIgnore; in ProcessSysExMessage()
526 pMIDIStream->sysExState = eSysExEnhancerSubID; in ProcessSysExMessage()
528 pMIDIStream->sysExState = eSysExIgnore; in ProcessSysExMessage()
532 pMIDIStream->sysExState = eSysExEnhancerFeedback1; in ProcessSysExMessage()
536 pMIDIStream->sysExState = eSysExEnhancerFeedback2; in ProcessSysExMessage()
540 pMIDIStream->sysExState = eSysExEnhancerDrive; in ProcessSysExMessage()
544 pMIDIStream->sysExState = eSysExEnhancerWet; in ProcessSysExMessage()
548 pMIDIStream->sysExState = eSysExEOX; in ProcessSysExMessage()
553 pMIDIStream->sysExState = eSysExIgnore; in ProcessSysExMessage()
560 pMIDIStream->sysExState = eSysExIgnore; in ProcessSysExMessage()
565 if (pMIDIStream->sysExState == eSysExIgnore) in ProcessSysExMessage()