From d3bca2473b108a298c49a1c8f7c97824b1d53754 Mon Sep 17 00:00:00 2001 From: Kai Blaschke Date: Mon, 6 Oct 2025 16:10:45 +0200 Subject: [PATCH] Close previous SDL audio recording device when selecting a new device index. --- src/AudioCaptureImpl_SDL.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/AudioCaptureImpl_SDL.cpp b/src/AudioCaptureImpl_SDL.cpp index c028923..2b9c2b5 100644 --- a/src/AudioCaptureImpl_SDL.cpp +++ b/src/AudioCaptureImpl_SDL.cpp @@ -91,6 +91,7 @@ void AudioCaptureImpl::AudioDeviceIndex(int index) { if (index >= -1 && index < SDL_GetNumAudioDevices(true)) { + StopRecording(); _currentAudioDeviceIndex = index; StartRecording(_projectMHandle, index); }