{ 
do{ 
int rtsyn_play_some_data(void){	UINT wMsg;	DWORD	dwInstance;	DWORD	dwParam1;	DWORD	dwParam2;	MidiEvent ev;	MidiEvent evm[16];	int port;	UINT evbpoint;	MIDIHDR *IIMidiHdr;	int exlen;	char *sysexbuffer;	int ne,i,j,chk,played;		played=0;	{		sleep(0);		if( !(evbuf[evbrpoint].status==B_OK)&&(evbrpoint!=evbwpoint) ) played=~0;		while( (evbuf[evbrpoint].status==B_OK)&&(evbrpoint!=evbwpoint) ){			evbpoint=evbrpoint;			if (++evbrpoint >= EVBUFF_SIZE)					evbrpoint -= EVBUFF_SIZE;			wMsg=evbuf[evbpoint].wMsg;			dwInstance=evbuf[evbpoint].dwInstance;			dwParam1=evbuf[evbpoint].dwParam1;			dwParam2=evbuf[evbpoint].dwParam2;			port=(UINT)dwInstance;			switch (wMsg) {			case MIM_DATA:				rtsyn_play_one_data (port, dwParam1);				break;			case MIM_LONGDATA:				IIMidiHdr = (MIDIHDR *) dwParam1;				exlen=(int)IIMidiHdr->dwBytesRecorded;				sysexbuffer=IIMidiHdr->lpData;				rtsyn_play_one_sysex (sysexbuffer,exlen );				if (MMSYSERR_NOERROR != midiInUnprepareHeader(						hMidiIn[port], IIMidiHdr, sizeof(MIDIHDR)))					ctl->cmsg(  CMSG_ERROR, VERB_NORMAL,"error1\n");				if (MMSYSERR_NOERROR != midiInPrepareHeader(						hMidiIn[port], IIMidiHdr, sizeof(MIDIHDR)))					ctl->cmsg(  CMSG_ERROR, VERB_NORMAL,"error5\n");				if (MMSYSERR_NOERROR != midiInAddBuffer(						hMidiIn[port], IIMidiHdr, sizeof(MIDIHDR)))					ctl->cmsg(  CMSG_ERROR, VERB_NORMAL,"error6\n");				break;			}		}		}while(rtsyn_reachtime>get_current_calender_time());	return played;}
4357	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4357/ac05fc62cad3d61b721f42ec31c55bf195182c15/rtsyn_winmm.c/clean/interface/rtsyn_winmm.c