// Update WAV header std::streampos fileSize = outputFile.tellp(); outputFile.close();
Before any app can use WASAPI Exclusive mode, you must enable it in your system settings: wasapi download windows 10
target_link_libraries(wasapi_recorder $ole32_lib $avrt_lib) // Update WAV header std::streampos fileSize = outputFile
set(CMAKE_CXX_STANDARD 17)
Here is everything you need to know about what WASAPI is, why you don't need to download it, and how to ensure you are using its full potential on Windows 10. wasapi download windows 10