From 9d0074495470a638809bf1ae25e7595e1190b778 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 2 Jul 2005 12:54:53 +0000 Subject: Small fixes svn-id: r18483 --- backends/midi/coreaudio.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'backends/midi') diff --git a/backends/midi/coreaudio.cpp b/backends/midi/coreaudio.cpp index 8648ca7a68..a0f0c41a33 100644 --- a/backends/midi/coreaudio.cpp +++ b/backends/midi/coreaudio.cpp @@ -25,9 +25,8 @@ #include "common/util.h" #include "sound/mpu401.h" -#include //for file stuff #include -#include //for AUGraph +#include 7 // Activating the following switch disables reverb support in the CoreAudio @@ -39,10 +38,10 @@ // Enable the following switch to make ScummVM try to use native MIDI hardware // on your computer for MIDI output. This is currently quite hackish, in -// particular you have no way to specify which device is used (it'll always -// use the first output device it can find), nor is there a switch to +// particular you have no way to specify which device is used (it just always +// uses the first output device it can find), nor is there a switch to // force it to use the soft synth instead of the MIDI HW. -//#define ENABLE_HACKISH_NATIVE_MIDI_SUPPORT +//#define ENABLE_HACKISH_NATIVE_MIDI_SUPPORT 1 /* CoreAudio MIDI driver * Based on code by Benjamin W. Zale @@ -85,9 +84,9 @@ int MidiDriver_CORE::open() { OSStatus err = noErr; - int dests = MIDIGetNumberOfDestinations(); mOutPort = 0; -#if ENABLE_HACKISH_NATIVE_MIDI_SUPPORT +#ifdef ENABLE_HACKISH_NATIVE_MIDI_SUPPORT + int dests = MIDIGetNumberOfDestinations(); if (dests > 0 && mClient) { mDest = MIDIGetDestination(0); err = MIDIOutputPortCreate( mClient, -- cgit v1.2.3