only look for ALSA on linux systems
This commit is contained in:
parent
9d780e4950
commit
b18b9bdcae
1 changed files with 24 additions and 22 deletions
|
@ -315,6 +315,7 @@ function suppress_err(dofunc::Function)
|
||||||
end
|
end
|
||||||
|
|
||||||
function __init__()
|
function __init__()
|
||||||
|
if Sys.islinux()
|
||||||
envkey = "ALSA_CONFIG_DIR"
|
envkey = "ALSA_CONFIG_DIR"
|
||||||
if envkey ∉ keys(ENV)
|
if envkey ∉ keys(ENV)
|
||||||
searchdirs = ["/usr/share/alsa",
|
searchdirs = ["/usr/share/alsa",
|
||||||
|
@ -341,6 +342,7 @@ function __init__()
|
||||||
confdir = searchdirs[confdir_idx]
|
confdir = searchdirs[confdir_idx]
|
||||||
ENV[envkey] = confdir
|
ENV[envkey] = confdir
|
||||||
end
|
end
|
||||||
|
end
|
||||||
# initialize PortAudio on module load. libportaudio prints a bunch of
|
# initialize PortAudio on module load. libportaudio prints a bunch of
|
||||||
# junk to STDOUT on initialization, so we swallow it.
|
# junk to STDOUT on initialization, so we swallow it.
|
||||||
# TODO: actually check the junk to make sure there's nothing in there we
|
# TODO: actually check the junk to make sure there's nothing in there we
|
||||||
|
|
Loading…
Reference in a new issue