aboutsummaryrefslogtreecommitdiff
path: root/backends/midi/coreaudio.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backends/midi/coreaudio.cpp')
-rw-r--r--backends/midi/coreaudio.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/backends/midi/coreaudio.cpp b/backends/midi/coreaudio.cpp
index d885a1c2c9..b32fee88c1 100644
--- a/backends/midi/coreaudio.cpp
+++ b/backends/midi/coreaudio.cpp
@@ -62,7 +62,10 @@ int MidiDriver_CORE::open() {
ComponentDescription compdesc;
Component compid;
- // Open the Music Device
+ // Open the Music Device.
+ // We use the AudioUnit v1 API, even though it is deprecated, because
+ // this way we stay compatible with older OS X versions.
+ // For v2, we'd use kAudioUnitType_MusicDevice and kAudioUnitSubType_DLSSynth
compdesc.componentType = kAudioUnitComponentType;
compdesc.componentSubType = kAudioUnitSubType_MusicDevice;
compdesc.componentManufacturer = kAudioUnitID_DLSSynth;