Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 1.04 KB

README.md

File metadata and controls

27 lines (21 loc) · 1.04 KB

Audio

Including

To add this library to your project, simply add these two lines to your CMakeLists.txt:

add_subdirectory(path/to/Audio)
target_link_libraries(${PROJECT_NAME} PRIVATE Cool::Audio)

Then include it as:

#include <Audio/Audio.hpp>

IMPORTANT: On MacOS, in order for your application to be able to access the microphone (when installing your app on end-users machines), you need to add this in your Info.plist file:

<key>NSMicrophoneUsageDescription</key>
<string>This app requires microphone access because [your reason here].</string>

See the documentation about this.

Running the tests

Simply use "tests/CMakeLists.txt" to generate a project, then run it.
If you are using VSCode and the CMake extension, this project already contains a .vscode/settings.json that will use the right CMakeLists.txt automatically.