aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-11-23 10:11:28 -0800
committerChris Robinson <[email protected]>2020-11-23 10:11:28 -0800
commit5d82058da7b8419f9d8bebda42826505fb3f1a6b (patch)
tree17f9ae0f806fd07ca5356ea337827932af0cb7a2
parent534c487f14b0e4901263f71110d36e96ef1ca4f1 (diff)
Use kAudioUnitScope_Global to get the maximum frame size
-rw-r--r--alc/backends/coreaudio.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/alc/backends/coreaudio.cpp b/alc/backends/coreaudio.cpp
index a6d33199..60103f51 100644
--- a/alc/backends/coreaudio.cpp
+++ b/alc/backends/coreaudio.cpp
@@ -563,7 +563,7 @@ void CoreAudioCapture::open(const ALCchar *name)
UInt32 outputFrameCount{};
propertySize = sizeof(outputFrameCount);
err = AudioUnitGetProperty(mAudioUnit, kAudioUnitProperty_MaximumFramesPerSlice,
- kAudioUnitScope_Input, 0, &outputFrameCount, &propertySize);
+ kAudioUnitScope_Global, 0, &outputFrameCount, &propertySize);
if(err != noErr || propertySize != sizeof(outputFrameCount))
throw al::backend_exception{ALC_INVALID_VALUE, "Could not get input frame count: %u",
err};