From 05607e31243e5e85a3801d4513192bb1f2150b14 Mon Sep 17 00:00:00 2001 From: Miller Puckette Date: Mon, 30 May 2005 03:04:19 +0000 Subject: Remembered to update all the edited files. Should now be in sync... will have to test it though. svn path=/trunk/; revision=3092 --- pd/src/s_main.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'pd/src/s_main.c') diff --git a/pd/src/s_main.c b/pd/src/s_main.c index 82fc48e4..619e6fd4 100644 --- a/pd/src/s_main.c +++ b/pd/src/s_main.c @@ -51,12 +51,8 @@ static t_namelist *sys_messagelist; static int sys_version; int sys_oldtclversion; /* hack to warn g_rtext.c about old text sel */ -int sys_nmidiout = 1; -#ifdef MSW -int sys_nmidiin = 0; -#else -int sys_nmidiin = 1; -#endif +int sys_nmidiout = -1; +int sys_nmidiin = -1; int sys_midiindevlist[MAXMIDIINDEV] = {1}; int sys_midioutdevlist[MAXMIDIOUTDEV] = {1}; @@ -921,8 +917,10 @@ static void sys_afterargparse(void) for (i = 0; i < naudiooutdev; i++) audiooutdev[i] = sys_soundoutdevlist[i]; } + sys_get_midi_params(&nmidiindev, midiindev, &nmidioutdev, midioutdev); if (sys_nmidiin >= 0) { + post("sys_nmidiin %d, nmidiindev %d", sys_nmidiin, nmidiindev); nmidiindev = sys_nmidiin; for (i = 0; i < nmidiindev; i++) midiindev[i] = sys_midiindevlist[i]; -- cgit v1.2.1