#ifdef DEBUG FILE * logfile; logfile = fopen("c:\\dbglog2.log","at"); if(logfile!=NULL) { for(int i = 0 ; i < exlen ; i++) fprintf(logfile,"%x ", sysexbuffer[i]); fprintf(logfile,"\n"); } fclose(logfile); #endif 
int timsyn_play_some_data(void){	UINT uMsg;	DWORD	dwParam1;	DWORD	dwParam2;		UINT evbpoint;	MIDIHDR *IIMidiHdr;	int exlen;	char *sysexbuffer;	int played;	double event_time;			played=0;		if( !timsyn_buf_check() ){ 			played=~0;			return played;		}		do{			EnterCriticalSection(&mim_section);			evbpoint=evbrpoint;			if (++evbrpoint >= EVBUFF_SIZE)					evbrpoint -= EVBUFF_SIZE;			uMsg=evbuf[evbpoint].uMsg;			dwParam1=evbuf[evbpoint].dwParam1;			dwParam2=evbuf[evbpoint].dwParam2;			event_time=evbuf[evbpoint].event_time;						LeaveCriticalSection(&mim_section);		    exlen=evbuf[evbpoint].exlen;			sysexbuffer=evbuf[evbpoint].sysexbuffer;			switch (uMsg) {			case MODM_DATA:				rtsyn_play_one_data (0, dwParam1, event_time);				break;			case MODM_LONGDATA:				rtsyn_play_one_sysex (sysexbuffer,exlen, event_time);				free(sysexbuffer);				break;			}		}while(timsyn_buf_check());		return played;}
4357	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4357/d58fb48ed74eb50a4e65cf45c56bec90d29fd925/timiditydrv.cpp/buggy/windrv/timiditydrv.cpp