coreaudio: swap default aggregate clock source.
Thanks to Stephane & the JACK2 team.
This commit is contained in:
parent
6888436416
commit
205ade377a
|
@ -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