diff --git a/src/audio/wasapi/SDL_wasapi_winrt.cpp b/src/audio/wasapi/SDL_wasapi_winrt.cpp index 235ae7d32e..43bf130eb7 100644 --- a/src/audio/wasapi/SDL_wasapi_winrt.cpp +++ b/src/audio/wasapi/SDL_wasapi_winrt.cpp @@ -189,14 +189,14 @@ SDL_WasapiDeviceEventHandler::OnEnumerationCompleted(DeviceWatcher^ sender, Plat void SDL_WasapiDeviceEventHandler::OnDefaultRenderDeviceChanged(Platform::Object^ sender, DefaultAudioRenderDeviceChangedEventArgs^ args) { - SDL_assert(this->iscapture); + SDL_assert(!this->iscapture); SDL_AtomicAdd(&SDL_IMMDevice_DefaultPlaybackGeneration, 1); } void SDL_WasapiDeviceEventHandler::OnDefaultCaptureDeviceChanged(Platform::Object^ sender, DefaultAudioCaptureDeviceChangedEventArgs^ args) { - SDL_assert(!this->iscapture); + SDL_assert(this->iscapture); SDL_AtomicAdd(&SDL_IMMDevice_DefaultCaptureGeneration, 1); }