Browse Source

Correct CoreAudio devices aggregation code.

tags/v1.9.11-RC1
Stephane Letz 10 years ago
parent
commit
70c920ba69
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      common/JackDriverLoader.cpp
  2. +1
    -1
      macosx/coreaudio/JackCoreAudioAdapter.cpp
  3. +1
    -1
      macosx/coreaudio/JackCoreAudioDriver.cpp

+ 1
- 1
common/JackDriverLoader.cpp View File

@@ -928,7 +928,7 @@ jack_constraint_add_enum(
sizeof(jack_driver_param_value_enum_t) * array_size);
if (possible_value_ptr == NULL)
{
jack_error("calloc() failed to (re)allocate memory for possible values array");
jack_error("realloc() failed to (re)allocate memory for possible values array");
return false;
}
constraint_ptr->constraint.enumeration.possible_values_array = possible_value_ptr;


+ 1
- 1
macosx/coreaudio/JackCoreAudioAdapter.cpp View File

@@ -1466,7 +1466,7 @@ OSStatus JackCoreAudioAdapter::CreateAggregateDeviceAux(vector<AudioDeviceID> ca
pluginAOPA.mScope = kAudioObjectPropertyScopeGlobal;
pluginAOPA.mElement = kAudioObjectPropertyElementMaster;
outDataSize = sizeof(CFStringRef);
osErr = AudioObjectSetPropertyData(*outAggregateDevice, &pluginAOPA, 0, NULL, outDataSize, &captureDeviceUID[0]); // First capture is master...
osErr = AudioObjectSetPropertyData(*outAggregateDevice, &pluginAOPA, 0, NULL, outDataSize, &playbackDeviceUID[0]); // First playback is master...
if (osErr != noErr) {
jack_error("JackCoreAudioAdapter::CreateAggregateDevice : AudioObjectSetPropertyData for master device error");
printError(osErr);


+ 1
- 1
macosx/coreaudio/JackCoreAudioDriver.cpp View File

@@ -1149,7 +1149,7 @@ OSStatus JackCoreAudioDriver::CreateAggregateDeviceAux(vector<AudioDeviceID> cap
pluginAOPA.mScope = kAudioObjectPropertyScopeGlobal;
pluginAOPA.mElement = kAudioObjectPropertyElementMaster;
outDataSize = sizeof(CFStringRef);
osErr = AudioObjectSetPropertyData(*outAggregateDevice, &pluginAOPA, 0, NULL, outDataSize, &captureDeviceUID[0]); // First capture is master...
osErr = AudioObjectSetPropertyData(*outAggregateDevice, &pluginAOPA, 0, NULL, outDataSize, &playbackDeviceUID[0]); // First playback is master...
if (osErr != noErr) {
jack_error("CreateAggregateDeviceAux : AudioObjectSetPropertyData for master device error");
printError(osErr);


Loading…
Cancel
Save