Skip to content

Commit d3bca24

Browse files
committed
Close previous SDL audio recording device when selecting a new device index.
1 parent 9151982 commit d3bca24

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/AudioCaptureImpl_SDL.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ void AudioCaptureImpl::AudioDeviceIndex(int index)
9191
{
9292
if (index >= -1 && index < SDL_GetNumAudioDevices(true))
9393
{
94+
StopRecording();
9495
_currentAudioDeviceIndex = index;
9596
StartRecording(_projectMHandle, index);
9697
}

0 commit comments

Comments
 (0)