diff options
author | Chris Robinson <[email protected]> | 2023-06-01 22:33:50 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-06-01 22:33:50 -0700 |
commit | 75cbbd0c02be29e2cd6a5b735306158d21765e38 (patch) | |
tree | 40083ef72267a062563b3a6f2125a2da1b63244b /alc/backends | |
parent | 6752d5516c8b30fe7db559c7f3a1423705d2a4fd (diff) |
Remove an unused lambda
Diffstat (limited to 'alc/backends')
-rw-r--r-- | alc/backends/wasapi.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/alc/backends/wasapi.cpp b/alc/backends/wasapi.cpp index 2b88aa96..a554d1b4 100644 --- a/alc/backends/wasapi.cpp +++ b/alc/backends/wasapi.cpp @@ -237,15 +237,9 @@ public: #if defined(ALSOFT_UWP) mActiveClientEvent = CreateEventW(nullptr, FALSE, FALSE, nullptr); - auto cb = [](alc::DeviceType type, const WCHAR *devid) - { - const std::string msg{"Default device changed: "+wstr_to_utf8(devid)}; - alc::Event(alc::EventType::DefaultDeviceChanged, type, msg); - }; - mRenderDeviceChangedToken = MediaDevice::DefaultAudioRenderDeviceChanged += ref new TypedEventHandler<Platform::Object ^, DefaultAudioRenderDeviceChangedEventArgs ^>( - [this,cb](Platform::Object ^ sender, DefaultAudioRenderDeviceChangedEventArgs ^ args) { + [this](Platform::Object ^ sender, DefaultAudioRenderDeviceChangedEventArgs ^ args) { if(args->Role == AudioDeviceRole::Default) { const std::string msg{"Default playback device changed: "+ @@ -256,7 +250,7 @@ public: }); mCaptureDeviceChangedToken = MediaDevice::DefaultAudioCaptureDeviceChanged += ref new TypedEventHandler<Platform::Object ^, DefaultAudioCaptureDeviceChangedEventArgs ^>( - [this,cb](Platform::Object ^ sender, DefaultAudioCaptureDeviceChangedEventArgs ^ args) { + [this](Platform::Object ^ sender, DefaultAudioCaptureDeviceChangedEventArgs ^ args) { if(args->Role == AudioDeviceRole::Default) { const std::string msg{"Default capture device changed: "+ |