Audio Input Not getting any data

Hello,
I’m trying to get my microphone to work using this audioDevicemanager setup :

void AudioController::showSettingsDialog()
{	
	AudioDeviceManager::AudioDeviceSetup setup;
	mDeviceManager->getAudioDeviceSetup(setup);
	
	AudioDeviceSelectorComponent selectorView(*mDeviceManager,
											1, 3,
											1, 3,
											false, false, true, false);
	selectorView.setSize(500, 450);
	 DialogWindow::showModalDialog(TRANS("Audio Settings"), &selectorView, 0, Colours::lightgrey, true, false, false);
}

But it doesn’t work : the callbacks are made but the buffer is empty it may be the fault of mac permissions but I’m not sure

Thank you for your help,
Best regards

Does the app ask you to enable access the microphone when you start it? If not, you need to add the microphone entitlement. If you use CMake, add MICROPHONE_PERMISSION_ENABLED TRUE to the juce_add_plugin() options. In Projucer you need to enable the microphone in the Xcode exporter options.

Yes, the mic permission is enabled in my .jucer

I set it to enabled but I don’t have the warning window asking for my permission to use the mic like I have on other juce projects

Checking related issue :

I checked the hardened runtime box but still don’t have any warning box displayed:

The issue is fixed the solution was to add firstly the --deep extra signing flag and to set the environment variable IDEPreferedLoggingStreaming to yes

Although I’ve never seen it cause issues in practice Apples recommendation is to not use this flag. Instead if you have nested bundles that need signing they should be signed inside out. That means the most nested bundles should be signed first, then their parent bundles, and so on until the most outer bundle is signed.

That being said you’ve not mentioned anything about nested bundles up to this point so I’m surprised that was your issue. In regards to IDEPreferedLoggingStreaming I can’t say I’ve ever come across is and a quick google produces zero results for me.

It might be worth checking the DemoRunner, you should see that it asks for microphone permissions when it launches.