Browse Source

Fix RtAudio crash when alsa soundcard is listed but not available

Signed-off-by: falkTX <falktx@falktx.com>
tags/v1.9.14
falkTX 6 years ago
parent
commit
08e0b1caea
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      source/modules/rtaudio/RtAudio.cpp

+ 3
- 1
source/modules/rtaudio/RtAudio.cpp View File

@@ -6681,7 +6681,9 @@ unsigned int RtApiAlsa :: getDeviceCount( void )
nDevices++;
}
nextcard:
snd_ctl_close( handle );
if (result == 0) {
snd_ctl_close( handle );
}
snd_card_next( &card );
}



Loading…
Cancel
Save