Skip to content

Commit

Permalink
Try to fix UWP builds
Browse files Browse the repository at this point in the history
  • Loading branch information
kcat committed Dec 24, 2024
1 parent e02fdb9 commit f01cfdc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions alc/backends/wasapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ using namespace Windows::Media::Devices;
using namespace Windows::Devices::Enumeration;
using namespace Windows::Media::Devices;
#endif
#ifndef E_NOTFOUND
#define E_NOTFOUND E_NOINTERFACE
#endif

using namespace std::string_view_literals;
using std::chrono::nanoseconds;
Expand Down Expand Up @@ -1476,7 +1479,7 @@ try {

althrd_setname(GetMixerThreadName());

auto mmdev = DeviceHandle{};
auto mmdev = DeviceHandle{nullptr};
auto audiodev = std::variant<PlainDevice,SpatialDevice>{std::in_place_index_t<0>{}};

auto devname = std::string{};
Expand Down Expand Up @@ -2484,7 +2487,7 @@ try {

althrd_setname(GetRecordThreadName());

auto mmdev = DeviceHandle{};
auto mmdev = DeviceHandle{nullptr};
auto client = ComPtr<IAudioClient>{};
auto capture = ComPtr<IAudioCaptureClient>{};

Expand Down

0 comments on commit f01cfdc

Please sign in to comment.