coreaudio: swap default aggregate clock source.
Thanks to Stephane & the JACK2 team.
This commit is contained in:
parent
b03e2f00e3
commit
cde15cb3ad
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user