Current input device: MacBook Pro Microphone
Number of input channels: 1
is opened: YES
is playing: YES
active channels: 1
And I checked in my “MacOs → System Settings → Sound → Input” and there is input volume set to maximum and on the meter I see there is signal.
But in my audioDeviceIOCallbackWithContext input has all values equal zero.
Thanks @xenakios for your answer.
I’ve heard about that. But I have no idea how to do that.
There is juce::RuntimePermissions but in documentation there is said that it works only for Android.
So juce::RuntimePermissions::request() and other methods do nothing. And juce::RuntimePermissions::isGranted() always return true;
That would be a thing to add in your Cmake CmakeLists.txt file, not in your C++ code. If you are not using Cmake, there is an option in the Projucer too :
I have a similar issue to the OP, I have added the above parameters to my CMakeLists.txt, but I still get no audio input if I build a universal binary. If I delete the arm64 target then my x86 binary works perfectly (on my Intel Mac), but as soon as I specify “arm64;x86_64” I get no audio at all.
Using projucer is not an option for me, as it can’t create a cmake file.
I don’t think the problem is related to enabling the microphone, as it is definitely enabled already. Are there any more cmake settings that matter for audio input?