I am creating a game which requires microphone input using the Cinder library. I am using CLion with CMake as my build system, but I am pretty new to CMake. The app is unable to access the microphone input; there are no errors.
auto ctx = ci::audio::master();
ci::audio::InputDeviceNodeRef input = ctx->createInputDeviceNode();
input >> ctx->getOutput();
input->enable();
Even when I simply set the output node of the input device to the speakers there is no sound. How do I make my app request microphone permissions?
I found that in an XCode project, there is an Info.plist key which allows for this:
<key>NSMicrophoneUsageDescription</key>
<string>Need microphone access for playing the game</string>
Is there a similar equivalent in CMake, or a way to use Info.plist files in a CMake project?
Running on macOS Catalina 10.15.3
Thank you in advance!