13
0

coreaudio: swap default aggregate clock source.

Thanks to Stephane & the JACK2 team.
This commit is contained in:
Robin Gareus 2015-03-30 13:18:51 +02:00
parent b03e2f00e3
commit cde15cb3ad

View File

@ -268,11 +268,11 @@ CoreAudioPCM::create_aggregate_device (
pluginAOPA.mScope = kAudioObjectPropertyScopeGlobal; pluginAOPA.mScope = kAudioObjectPropertyScopeGlobal;
pluginAOPA.mElement = kAudioObjectPropertyElementMaster; pluginAOPA.mElement = kAudioObjectPropertyElementMaster;
outDataSize = sizeof(CFStringRef); outDataSize = sizeof(CFStringRef);
err = AudioObjectSetPropertyData(*created_device, &pluginAOPA, 0, NULL, outDataSize, &captureDeviceUID[0]); err = AudioObjectSetPropertyData(*created_device, &pluginAOPA, 0, NULL, outDataSize, &playbackDeviceUID[0]);
if (err != noErr) { if (err != noErr) {
fprintf(stderr, "AggregateDevice: AudioObjectSetPropertyData for playback-master device error\n"); fprintf(stderr, "AggregateDevice: AudioObjectSetPropertyData for playback-master device error\n");
// try playback // try playback
err = AudioObjectSetPropertyData(*created_device, &pluginAOPA, 0, NULL, outDataSize, &playbackDeviceUID[0]); err = AudioObjectSetPropertyData(*created_device, &pluginAOPA, 0, NULL, outDataSize, &captureDeviceUID[0]);
} }
if (err != noErr) { if (err != noErr) {
fprintf(stderr, "AggregateDevice: AudioObjectSetPropertyData for capture-master device error\n"); fprintf(stderr, "AggregateDevice: AudioObjectSetPropertyData for capture-master device error\n");