From bd37f6c5890395dd9aaebbf35a9aac20c24a671a Mon Sep 17 00:00:00 2001 From: "N.N." Date: Wed, 27 May 2009 21:29:49 +0000 Subject: reformat svn path=/trunk/; revision=11534 --- desiredata/src/s_main.c | 4 ++-- desiredata/src/s_midi_mmio.c | 18 ++++++------------ 2 files changed, 8 insertions(+), 14 deletions(-) (limited to 'desiredata/src') diff --git a/desiredata/src/s_main.c b/desiredata/src/s_main.c index a4e1f22a..2a274b18 100644 --- a/desiredata/src/s_main.c +++ b/desiredata/src/s_main.c @@ -615,8 +615,8 @@ static void sys_afterargparse() { if (sys_nchout>=0) {for (int i=0; i=0) {audio_in.ndev = sys_nsoundin; for (int i=0; i< audio_in.ndev; i++) audio_in.dev[i] = sys_soundindevlist[i];} if (sys_nsoundout>=0) {audio_out.ndev = sys_nsoundout;for (int i=0; i=0) {nmidiindev = sys_nmidiin; for (int i=0; i< nmidiindev; i++) midiindev[i] = sys_midiindevlist[i];} - if (sys_nmidiout>=0) {nmidioutdev = sys_nmidiout; for (int i=0; i< nmidioutdev; i++) midioutdev[i] = sys_midioutdevlist[i];} + if (sys_nmidiin >=0) {nmidiindev = sys_nmidiin; for (int i=0; i< nmidiindev; i++) midiindev[i] = sys_midiindevlist[i];} + if (sys_nmidiout>=0) {nmidioutdev = sys_nmidiout; for (int i=0; i< nmidioutdev; i++) midioutdev[i] = sys_midioutdevlist[i];} if (sys_main_advance) advance = sys_main_advance; if (sys_main_srate) rate = sys_main_srate; if (sys_main_dacblocksize) dacblksize = sys_main_dacblocksize; diff --git a/desiredata/src/s_midi_mmio.c b/desiredata/src/s_midi_mmio.c index 55ccf277..6d11128a 100644 --- a/desiredata/src/s_midi_mmio.c +++ b/desiredata/src/s_midi_mmio.c @@ -462,17 +462,13 @@ void sys_listmididevs() { /* for MIDI and audio in and out, get the number of devices. Then get the capabilities of each device and print its description. */ UINT ndevices = midiInGetNumDevs(); for (unsigned i=0; i