Use kAudioUnitScope_Global to get the maximum frame size

This commit is contained in:
Chris Robinson
2020-11-23 10:11:28 -08:00
parent 534c487f14
commit 5d82058da7
+1 -1
View File
@@ -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};