From 992e84387fddc202dd8d3940c8cfc8584c064660 Mon Sep 17 00:00:00 2001 From: John Melas Date: Fri, 27 Nov 2020 09:05:47 +0200 Subject: [PATCH] fix compile error --- src/hostapi/coreaudio/pa_mac_core_utilities.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hostapi/coreaudio/pa_mac_core_utilities.c b/src/hostapi/coreaudio/pa_mac_core_utilities.c index 4563a93..2e85907 100644 --- a/src/hostapi/coreaudio/pa_mac_core_utilities.c +++ b/src/hostapi/coreaudio/pa_mac_core_utilities.c @@ -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 } @@ -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 } @@ -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 } -- 2.43.0