Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15569
Modified Files: Tag: desiredata s_midi.c Log Message: removed unused vars and reformatted code
Index: s_midi.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/s_midi.c,v retrieving revision 1.4.4.1.2.12.2.4 retrieving revision 1.4.4.1.2.12.2.5 diff -C2 -d -r1.4.4.1.2.12.2.4 -r1.4.4.1.2.12.2.5 *** s_midi.c 19 Dec 2006 20:52:40 -0000 1.4.4.1.2.12.2.4 --- s_midi.c 20 Dec 2006 08:12:26 -0000 1.4.4.1.2.12.2.5 *************** *** 154,166 **** }
! static void sys_queuemidimess(int portno, int onebyte, int a, int b, int c) ! { ! t_midiqelem *midiqelem; int newhead = midi_outhead +1; ! if (newhead == MIDIQSIZE) ! newhead = 0; ! /* if FIFO is full flush an element to make room */ ! if (newhead == midi_outtail) [...964 lines suppressed...] int noutdev, midioutdev[MAXMIDIOUTDEV]; t_atom argv[MAXNDEV]; int i; sys_get_midi_params(&nindev, midiindev, &noutdev, midioutdev); ! for (i = 0; i < nindev; i++) SETFLOAT(argv+i, midiindev[i]); ! typedmess(gensym("pd")->s_thing, gensym("midicurrentindev"), nindev, argv); }
! void glob_midi_getcurrentoutdevs(t_pd *dummy) { /* these are the devices you're using: */ int nindev, midiindev[MAXMIDIINDEV]; int noutdev, midioutdev[MAXMIDIOUTDEV]; t_atom argv[MAXNDEV]; int i; sys_get_midi_params(&nindev, midiindev, &noutdev, midioutdev); ! for (i = 0; i < noutdev; i++) SETFLOAT(argv+i, midioutdev[i]); ! typedmess(gensym("pd")->s_thing, gensym("midicurrentoutdev"), noutdev, argv); }