re-enables suppressing portaudio initialization output

This commit is contained in:
Spencer Russell 2020-01-30 11:33:50 -05:00
parent d069e75a9f
commit 9d780e4950

View file

@ -341,10 +341,13 @@ function __init__()
confdir = searchdirs[confdir_idx] confdir = searchdirs[confdir_idx]
ENV[envkey] = confdir ENV[envkey] = confdir
end end
# initialize PortAudio on module load # initialize PortAudio on module load. libportaudio prints a bunch of
# suppress_err() do # junk to STDOUT on initialization, so we swallow it.
# TODO: actually check the junk to make sure there's nothing in there we
# don't expect
suppress_err() do
Pa_Initialize() Pa_Initialize()
# end end
atexit() do atexit() do
Pa_Terminate() Pa_Terminate()