]> Repos - portaudio/commitdiff
fix compile error
authorJohn Melas <john@jmelas.gr>
Fri, 27 Nov 2020 07:05:47 +0000 (09:05 +0200)
committerPhil Burk <philburk@mobileer.com>
Thu, 21 Jan 2021 02:21:30 +0000 (18:21 -0800)
src/hostapi/coreaudio/pa_mac_core_utilities.c

index 4563a9310695ce0e3225e3af7dc20ef9e5a92fa7..2e859076005800a4bc9868d815e4ddbe05007381 100644 (file)
@@ -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
 }