Closed petres closed 3 years ago
the underlying portaudio library dumps error messages straight to stdout/stderr, which is pretty annoying.
Given that we're now building our own portaudio binary anyways, probably the right fix is to patch portaudio to call some error callback and supply the error message, rather than printing directly.
Makes sense, @petres are you able to open a PR to address this?
@rob-luke PR for patching the portaudio c library? Maybe, but I even don't know where your portaudio fork is living.
portaudio is built as part of Julia's binary repository. The script is here:
https://github.com/JuliaPackaging/Yggdrasil/blob/master/L/libportaudio/build_tarballs.jl
If you look at line 35 you can see where the script applies a patch, this would be another similar patch.
That's also upstream an issue: https://github.com/PortAudio/portaudio/issues/423 https://github.com/PortAudio/portaudio/issues/555 https://github.com/PortAudio/portaudio/issues/163 Pending 10 years, I can't afford going deeper in that. Closing it here.
Is it necessary to capture
stderr
. It makes it hard to work with the REPL in VS Code:https://github.com/julia-vscode/julia-vscode/issues/2392
Thanks!