projects
/
rtaudio-cdist.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
40d607b
)
Merge remote-tracking branch 'upstream/pr/141'
author
Stephen Sinclair
<radarsat1@gmail.com>
Tue, 16 Oct 2018 13:09:53 +0000
(15:09 +0200)
committer
Stephen Sinclair
<radarsat1@gmail.com>
Tue, 16 Oct 2018 13:09:53 +0000
(15:09 +0200)
RtAudio.cpp
patch
|
blob
|
history
diff --git
a/RtAudio.cpp
b/RtAudio.cpp
index 60993a344e12acc17987bd3bd8cdb36965324822..d23524d4024fd81662faf66ec3bf8bc13da8ed4f 100644
(file)
--- 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.