1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-01 21:54:55 -04:00

Request authorization for access to camera and microphone on Mac

This commit is contained in:
Jon Beniston
2023-09-12 09:20:07 +01:00
parent cd92bc3b74
commit 28fa1376d8
3 changed files with 54 additions and 3 deletions
+6
View File
@@ -220,6 +220,12 @@ int main(int argc, char* argv[])
sfc.setVersion(3, 3);
sfc.setProfile(QSurfaceFormat::CoreProfile);
QSurfaceFormat::setDefaultFormat(sfc);
// Request authorization for access to camera and microphone (mac/auth.mm)
extern int authCameraAndMic();
if (authCameraAndMic() < 0) {
qWarning("Failed to authorize access to camera and microphone. Enable access in System Settings > Privacy & Security");
}
#endif
#ifdef ANDROID