Open omlins opened 2 years ago
Hi, thanks for the report. Those aren't errors per say, just ALSA messages about alsa trying to figure out your sound setup. We redirect them to the debug log during __init__
. Ref https://github.com/JuliaAudio/PortAudio.jl/blob/f6cd300ec8716853fd41043da2232d42c680baee/src/PortAudio.jl#L111 . It seems that's not working in some circumstances, but I'm not sure why.
@bramtayl, thanks a lot for your reply. I see - I also found the related issues on PortAudio... Might it be that https://github.com/JuliaAudio/PortAudio.jl/blob/f6cd300ec8716853fd41043da2232d42c680baee/src/PortAudio.jl#L20 does already initialize some ALSA stuff and cause these error messages?
Hmm, no I don't think so. I'm guessing the issue is Pkg and error capturing don't work well together.
In the REPL,
using PortAudio
and creating a stream work just fine and also the available devices seem to have been recognized without problems:However, when I add
using PortAudio
(and nothing else!) to a package, then it this package gives many errors in precompilation:Thus, I wonder: should PortAudio.jl move some of these initializations from precompilation time to module load time (
__init__()
)?NOTE: OS info: