projects
/
rtaudio-cdist.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix ALSA CTL handle not being closed in the default case
[rtaudio-cdist.git]
/
RtAudio.cpp
diff --git
a/RtAudio.cpp
b/RtAudio.cpp
index b091e15782690a0324a29b2f6b91e90f4e8f20a4..8255993708eff86310ac24ed35d4a1a655c8c0d2 100644
(file)
--- a/
RtAudio.cpp
+++ b/
RtAudio.cpp
@@
-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++;