You have to add the description of microphone use to be presented to the user.
I've done somethign similar to this, for video I think, and I did get the popup and it worked as it should have.
Sent: Thursday, May 02, 2019 at 9:37 AM
From: "Roland Winklmeier" <roland.m.winklme...@gmail.com>
To: interest@qt-project.org
Subject: [Interest] Trying to access Microphone via QAudioInput on Mac 10.14
From: "Roland Winklmeier" <roland.m.winklme...@gmail.com>
To: interest@qt-project.org
Subject: [Interest] Trying to access Microphone via QAudioInput on Mac 10.14
Dear Qt experts,
I'm trying to access the microphone using QAudioInput for a VoIP application. Since Mac 10.14, I receive only silence from the QAudioInput. After reading the Mac OS 10.14 documentation, I realize that Apple added more Security/Privacy control to MacOS. All microphone access has to be approved by the user.
Fair enough, however the permission request to ask for authorization is never popping up. Also my application is not listed in the Privacy/Security control. I simply tried to open a default device with QAudioInput and started it. Do I miss something?
I also added <key>NSMicrophoneUsageDescription</key> to the Info.plist which seems necessary now. However, no success still.
I also read https://forum.qt.io/topic/97570/macos-mojave-privacy-prompt-not-appearing-when-debugging-audio-app-in-qt-creator/8 which suggests that it should work.
Does anyone know whats going on?
Thanks,
Roland
_______________________________________________ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest