Avoid calling alsa::PCM::new() multiple times.
Ensures that alsa::PCM::new() is called only once for a given Device so that we are not rapidly opening and closing ALSA devices.
This commit is contained in:
parent
296cf5caf7
commit
fb30d291ce
3 changed files with 68 additions and 22 deletions
|
|
@ -30,6 +30,7 @@ lazy_static = "1.3"
|
|||
alsa = "0.4.3"
|
||||
nix = "0.15.0"
|
||||
libc = "0.2.65"
|
||||
parking_lot = "0.11"
|
||||
jack = { version = "0.6.5", optional = true }
|
||||
|
||||
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue