From 783aafff32c7e02727e73d86918fa524dfc76e22 Mon Sep 17 00:00:00 2001 From: Miller Puckette Date: Fri, 4 Jul 2008 03:53:15 +0000 Subject: many bug fixes. sigmund~ and bonk~ updates (ongoing) some new math objects svn path=/trunk/; revision=10140 --- pd/src/s_midi_oss.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pd/src/s_midi_oss.c') diff --git a/pd/src/s_midi_oss.c b/pd/src/s_midi_oss.c index 354dc0d5..e1f7c8c6 100644 --- a/pd/src/s_midi_oss.c +++ b/pd/src/s_midi_oss.c @@ -81,7 +81,7 @@ void sys_do_open_midi(int nmidiin, int *midiinvec, if (outdevindex >= 0 && fd >= 0) oss_midioutfd[outdevindex] = fd; } - if (devno == 1 && fd < 0) + if (devno == 0 && fd < 0) { sys_setalarm(1000000); fd = open("/dev/midi", O_RDONLY | O_MIDIFLAG); @@ -116,7 +116,7 @@ void sys_do_open_midi(int nmidiin, int *midiinvec, int fd = oss_midioutfd[i]; char namebuf[80]; int devno = midioutvec[i]; - if (devno == 1 && fd < 0) + if (devno == 0 && fd < 0) { sys_setalarm(1000000); fd = open("/dev/midi", O_WRONLY | O_MIDIFLAG); -- cgit v1.2.1