diff --git a/CMakeLists.txt b/CMakeLists.txt index 55d1e9dabd..d8325da800 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2903,7 +2903,7 @@ if(TargetBin) add_executable(${TargetBin} WIN32 ${NativeAppSource}) if(NOT MSVC) target_compile_options(${TargetBin} PRIVATE $<$:-Wno-c++11-narrowing>) - target_link_libraries(${TargetBin} Version Dwmapi) + target_link_libraries(${TargetBin} Version Dwmapi Avrt) endif() set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT ${TargetBin}) else() diff --git a/Windows/WASAPIContext.cpp b/Windows/WASAPIContext.cpp index 6b9b2736ac..c371b17f37 100644 --- a/Windows/WASAPIContext.cpp +++ b/Windows/WASAPIContext.cpp @@ -6,7 +6,6 @@ #include #include #include -#include #include #include @@ -141,7 +140,7 @@ bool WASAPIContext::InitOutputDevice(std::string_view uniqueId, LatencyMode late nullptr ); if (FAILED(result)) { - printf("Error initializing shared audio stream: %08x", result); + printf("Error initializing shared audio stream: %08lx", result); audioClient3_->Release(); device->Release(); audioClient3_ = nullptr; diff --git a/Windows/WASAPIContext.h b/Windows/WASAPIContext.h index b088669460..703d580717 100644 --- a/Windows/WASAPIContext.h +++ b/Windows/WASAPIContext.h @@ -22,9 +22,9 @@ public: userdata_ = userdata; } - void EnumerateDevices(std::vector *outputDevices, bool captureDevices = false); + void EnumerateDevices(std::vector *outputDevices, bool captureDevices = false) override; - bool InitOutputDevice(std::string_view uniqueId, LatencyMode latencyMode, bool *revertedToDefault); + bool InitOutputDevice(std::string_view uniqueId, LatencyMode latencyMode, bool *revertedToDefault) override; void FrameUpdate(bool allowAutoChange) override;