Open fredvs opened 3 years ago
Re-hello.
This was already asked here: https://github.com/PortAudio/portaudio/issues/163
Imho, it would be very great if PortAudio could, for example, add a new _PaNowarning method that user can do just before _Pa_Initialize_ and avoid all that (not funny) warnings that scare all end users.
Or something else but, really, all that debug infos should not be visible (or have the possibility to not see it).
Many thanks.
Fre;D
I used this "fix" to get rid of them, at least temporarily:
#include <stdio.h>
freopen("log.txt", "w", stderr);
This way I can use stdout
for my own logging and if I need to see portaudio's messages they're in log.txt.
Not optimal, but at least it's a workaround.
Hello @strawmanninen
Thanks for the tip.
Yes, of course, you may redirect stderr.
You may even do via treminal:
$ myportaudioapp 2>> warning.log
But it is also a workaround.
If I'm understanding this correctly this has been an open issue for 10 years now. Is there any way to get it addressed? (Happy to try it? The suggestion above does not seem incredibly complex...) It's a "little" thing but is preventing me from effectively using the library altogether right now.
Hello.
You may also use Dup2 and pipes: https://stackoverflow.com/questions/955962/how-to-buffer-stdout-in-memory-and-write-it-from-a-dedicated-thread
But it is a work-around.
There appears to be two problems here:
Expression ? failed
in 'src/hostapi/alsa/pa_linux_alsa.c' errors, which are concerning, but may be specific to machine configuration. It would be good to get some more system info. Is anyone else seeing these errors?
When running a application via terminal that uses PortAudio, there are lot of debug infos. How to do to hide all that infos?
Here for example the infos when running release version of "audacity" via terminal:
Many thanks.
Fre;D