diff options
Diffstat (limited to 'alc/backends/wasapi.cpp')
-rw-r--r-- | alc/backends/wasapi.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/alc/backends/wasapi.cpp b/alc/backends/wasapi.cpp index 76c6d009..114c69e0 100644 --- a/alc/backends/wasapi.cpp +++ b/alc/backends/wasapi.cpp @@ -627,7 +627,7 @@ int WasapiProxy::messageHandler(std::promise<HRESULT> *promise) struct WasapiPlayback final : public BackendBase, WasapiProxy { - WasapiPlayback(ALCdevice *device) noexcept : BackendBase{device} { } + WasapiPlayback(DeviceBase *device) noexcept : BackendBase{device} { } ~WasapiPlayback() override; int mixerProc(); @@ -1160,7 +1160,7 @@ ClockLatency WasapiPlayback::getClockLatency() struct WasapiCapture final : public BackendBase, WasapiProxy { - WasapiCapture(ALCdevice *device) noexcept : BackendBase{device} { } + WasapiCapture(DeviceBase *device) noexcept : BackendBase{device} { } ~WasapiCapture() override; int recordProc(); @@ -1492,7 +1492,7 @@ HRESULT WasapiCapture::resetProxy() CoTaskMemFree(wfx); wfx = nullptr; - auto validate_fmt = [](ALCdevice *device, uint32_t chancount, DWORD chanmask) noexcept + auto validate_fmt = [](DeviceBase *device, uint32_t chancount, DWORD chanmask) noexcept -> bool { switch(device->FmtChans) @@ -1757,7 +1757,7 @@ std::string WasapiBackendFactory::probe(BackendType type) return outnames; } -BackendPtr WasapiBackendFactory::createBackend(ALCdevice *device, BackendType type) +BackendPtr WasapiBackendFactory::createBackend(DeviceBase *device, BackendType type) { if(type == BackendType::Playback) return BackendPtr{new WasapiPlayback{device}}; |