Browse Source

Fix RtAudio crash when alsa soundcard is listed but not available

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.1-alpha2
falkTX 5 years ago
parent
commit
51f5bf7059
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
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