From 7d24fde80be6ecdd8181dc37e310ec6841c5f7bb Mon Sep 17 00:00:00 2001 From: "N.N." Date: Tue, 26 May 2009 06:42:06 +0000 Subject: reformat svn path=/trunk/; revision=11509 --- desiredata/src/s_midi_mmio.c | 39 ++++++++++++++++----------------------- 1 file changed, 16 insertions(+), 23 deletions(-) (limited to 'desiredata/src') diff --git a/desiredata/src/s_midi_mmio.c b/desiredata/src/s_midi_mmio.c index a986b28c..55ccf277 100644 --- a/desiredata/src/s_midi_mmio.c +++ b/desiredata/src/s_midi_mmio.c @@ -2,7 +2,7 @@ * For information on usage and redistribution, and for a DISCLAIMER OF ALL * WARRANTIES, see the file, "LICENSE.txt," in this distribution. */ -#include "m_pd.h" +#include "desire.h" #include "s_stuff.h" #include #include @@ -56,10 +56,10 @@ static void msw_open_midiout(int nmidiout, int *midioutvec) { if (nmidiout > MAXMIDIOUTDEV) nmidiout = MAXMIDIOUTDEV; int dev = 0; for (int i=0; i maxndev) nin = maxndev; + int nin = min(maxndev,int( midiInGetNumDevs())); + int nout = min(maxndev,int(midiOutGetNumDevs())); for (int i=0; i maxndev) nout = maxndev; for (int i=0; i