-
Notifications
You must be signed in to change notification settings - Fork 307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stderr flooded with debugging messages #739
Comments
There are multiple ways:
|
Doesn't (1) correspond to To be specific, my problem is that, even with the above configure
prints this
to stderr. |
Those messages are not generated by PortAudio. You would need to work out how to make ALSA and JACK be quiet -- for example by fixing the configuration issues that result in those errors. |
Seems like a duplicate of this: #555 |
I thought it was the role of portaudio to talk to alsa and jack for the user? (In case you meant to dismiss this as not a portaudio issue.) It seems that there is an alsa ``debug'' option that can be set to 0, but I'm having a hard time figuring out how. |
As far as I understand, the error messages arise because ALSA is misconfigured (i.e. your system-level ALSA config files are borked). PortAudio does not take responsibility at that level. If you think that PortAudio could somehow do something better in this situation, please could you explain. |
Would it be possible to add an option to redirect these warnings away If ALSA is misconfigured, it is so on both Void Linux and Kubuntu (and |
@uti5 : If you want a fast-clean solution for your C applications: #555 (comment) |
First, please keep in mind that although I am a maintainer of PortAudio I do not generally work with ALSA or Linux. We have a lack of contributors in this area, which is why I am responding. Regarding the ALSA messages there's some discussion here: https://stackoverflow.com/questions/31603555/unknown-pcm-cards-pcm-rear-pyaudio Which mentions the ALSA function So you could try using that function in your own code and see whether it works. Just thinking out loud here: PortAudio could do one of:
The problem with (2) is that perhaps some errors should not be suppressed. How do we know which? Perhaps when For (3) I'm not sure what advantage there is vs. user directly calling |
Many thanks for this. I will deeply study it ( even that I am happy with redirecting the error messages to a log file, as I do for the moment ). Fre;D |
Just to contribute with the thread, as an user, I prefer (3) over (2).
PortAudio already provide an API for special audio host configurations,
such as channel mapping for ASIO, exclusive mode for WASAPI, and latency
configs for ALSA, so configure warnings wouldn't be an outlier.
As regarding (2), it would be somewhat of a regression. PA used to suppress
the warnings, and for reasons already said by Ross, the lib abdicated this
behaviour.
Since Explicit is better than Implicit, being able to suppress the warnigs
from an explicit API seems a better option.
As for PA provide such API, would be a useful convenience, which I am
favorable, rather than a necessity.
Hope this contribute for the evolving of this solution
Em seg, 14 de nov de 2022 19:22, Fred vS ***@***.***>
escreveu:
… Many thanks for this.
I will deeply study it ( even that I am happy with redirecting the error
messages to a log file, as I do for the moment ).
Fre;D
—
Reply to this email directly, view it on GitHub
<#739 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJPYUKGYDNCTCGYT2LY2BHLWIK3QVANCNFSM6AAAAAARHJSWJ4>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
@Chum4k3r thanks for the feedback, I think you've made a good argument that (3) is a reasonable approach. If someone would like to make a patch we can review it. In the mean time, as a work around, clients can call Not sure what we can do about the JACK messages. |
Is there a way to use portaudio in a command-line program without getting stderr flooded with debugging messages?
The text was updated successfully, but these errors were encountered: