summaryrefslogtreecommitdiff
path: root/RtAudio.cpp
diff options
context:
space:
mode:
authorStephen Sinclair <radarsat1@gmail.com>2018-10-16 15:09:53 +0200
committerStephen Sinclair <radarsat1@gmail.com>2018-10-16 15:09:53 +0200
commitab57ca2569c2ffa0b92b1222b38f2797805a629c (patch)
treea57bb207b3721224a1c9b87d9e41cb1ce2c61892 /RtAudio.cpp
parent40d607b2b30e64fcf9978386dd746c20566ef324 (diff)
parentab4af532a13c5659e3355fb72428546a60e1925d (diff)
Merge remote-tracking branch 'upstream/pr/141'
Diffstat (limited to 'RtAudio.cpp')
-rw-r--r--RtAudio.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/RtAudio.cpp b/RtAudio.cpp
index 60993a3..d23524d 100644
--- a/RtAudio.cpp
+++ b/RtAudio.cpp
@@ -7504,10 +7504,12 @@ 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++;
}
+ snd_ctl_close( chandle );
if ( nDevices == 0 ) {
// This should not happen because a check is made before this function is called.