Browse Source

Fix ALSA CTL handle not being closed in the default case

tags/5.1.0
Connor MacDonald 7 years ago
parent
commit
d79e960d70
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      RtAudio.cpp

+ 1
- 0
RtAudio.cpp View File

@@ -7157,6 +7157,7 @@ bool RtApiAlsa :: probeDeviceOpen( unsigned int device, StreamMode mode, unsigne
if ( result == 0 ) {
if ( nDevices == device ) {
strcpy( name, "default" );
snd_ctl_close( chandle );
goto foundDevice;
}
nDevices++;


Loading…
Cancel
Save