void test2 () { long v; printf("\n\n<TEST 2> Get MidiShare version\n"); DebugStr ("--> use g or G to get the MidiShare version and go to the next test\n"); v = MidiGetVersion(); printf("MidiShare version : %ld.%ld\n", v / 100, v % 100); }
/*____________________________________________________________________*/ main(void) { print ("\nMidiShare filters tests.\n"); print ("================================\n"); if( MidiShare()) { version= MidiGetVersion(); print ("MidiShare version %d.%d\n\n", (int)version/100, (int)version%100); if( Open()) { Ports(); Canaux(); Events(); Close(); } else print ("Can't open a MidiShare application !\n"); } else print ("MidiShare is not installed !\n"); print ("\nEnd of filters tests.\n"); return 0; }