summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-06-09 21:34:16 +0200
committerRobin Gareus <robin@gareus.org>2015-06-09 21:34:16 +0200
commit17453ec8554a9da8e39ebe93c53cf8d0e7dfe93c (patch)
treef295688891a9491eadff31d3b4a772f969c40ce4
parent70a0ee504c67c931e390d35f12d0f0008ebf1fe5 (diff)
debug aggregate device issue - i386/10.8 only
-rw-r--r--libs/backends/coreaudio/coreaudio_pcmio_aggregate.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/libs/backends/coreaudio/coreaudio_pcmio_aggregate.cc b/libs/backends/coreaudio/coreaudio_pcmio_aggregate.cc
index 0ab683a686..f50c7b3baf 100644
--- a/libs/backends/coreaudio/coreaudio_pcmio_aggregate.cc
+++ b/libs/backends/coreaudio/coreaudio_pcmio_aggregate.cc
@@ -183,10 +183,12 @@ CoreAudioPCM::create_aggregate_device (
CFDictionaryAddValue(aggDeviceDict, CFSTR(kAudioAggregateDeviceNameKey), AggregateDeviceNameRef);
CFDictionaryAddValue(aggDeviceDict, CFSTR(kAudioAggregateDeviceUIDKey), AggregateDeviceUIDRef);
+#ifndef NDEBUG
// hide from list
int value = 1;
CFNumberRef AggregateDeviceNumberRef = CFNumberCreate(NULL, kCFNumberIntType, &value);
CFDictionaryAddValue(aggDeviceDict, CFSTR(kAudioAggregateDeviceIsPrivateKey), AggregateDeviceNumberRef);
+#endif
//-------------------------------------------------
// Create a CFMutableArray for our sub-device list
@@ -226,14 +228,16 @@ CoreAudioPCM::create_aggregate_device (
UInt32 outDataSize = 0;
err = AudioObjectGetPropertyDataSize(_aggregate_plugin_id, &pluginAOPA, 0, NULL, &outDataSize);
+#ifdef WE_DONT_CARE_ABOUT_SOME_ODD_MAVERICKS_I386_ODDITITY
if (err != noErr) {
- fprintf(stderr, "AggregateDevice: AudioObjectGetPropertyDataSize error\n");
+ fprintf(stderr, "AggregateDevice: AudioObjectGetPropertyDataSize error %d\n", err);
goto error;
}
+#endif
err = AudioObjectGetPropertyData(_aggregate_plugin_id, &pluginAOPA, sizeof(aggDeviceDict), &aggDeviceDict, &outDataSize, created_device);
if (err != noErr) {
- fprintf(stderr, "AggregateDevice: AudioObjectGetPropertyData error\n");
+ fprintf(stderr, "AggregateDevice: AudioObjectGetPropertyData error %d\n", err);
goto error;
}