Skip to content

Commit

Permalink
fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
jmelas committed Nov 27, 2020
1 parent 54573d9 commit 498a9b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/hostapi/coreaudio/pa_mac_core_utilities.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ OSStatus pa_AudioHardwareGetProperty(
AudioObjectPropertyAddress address = { inPropertyID, kAudioObjectPropertyScopeGlobal, kAudioObjectPropertyElementMaster };
return AudioObjectGetPropertyData(kAudioObjectSystemObject, &address, 0, NULL, ioPropertyDataSize, outPropertyData);
#else
macErr = AudioHardwareGetProperty(inPropertyID, ioPropertyDataSize, outPropertyData);
return AudioHardwareGetProperty(inPropertyID, ioPropertyDataSize, outPropertyData);
#endif
}

Expand All @@ -84,7 +84,7 @@ OSStatus pa_AudioHardwareGetPropertySize(
AudioObjectPropertyAddress address = { inPropertyID, kAudioObjectPropertyScopeGlobal, kAudioObjectPropertyElementMaster };
return AudioObjectGetPropertyDataSize(kAudioObjectSystemObject, &address, 0, NULL, outSize);
#else
macErr = AudioHardwareGetPropertyInfo(inPropertyID, outSize, NULL);
return AudioHardwareGetPropertyInfo(inPropertyID, outSize, NULL);
#endif
}

Expand All @@ -101,7 +101,7 @@ OSStatus pa_AudioDeviceGetProperty(
AudioObjectPropertyAddress address = { inPropertyID, scope, inChannel };
return AudioObjectGetPropertyData(inDevice, &address, 0, NULL, ioPropertyDataSize, outPropertyData);
#else
macErr = AudioDeviceGetProperty(inDevice, inChannel, isInput, inPropertyID, ioPropertyDataSize, outPropertyData);
return AudioDeviceGetProperty(inDevice, inChannel, isInput, inPropertyID, ioPropertyDataSize, outPropertyData);
#endif
}

Expand Down

0 comments on commit 498a9b0

Please sign in to comment.