You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes snd_pcm_hw_params_any() can return +1 when it succeeds. On my system io plugins return 1 and hw devices return 0 and both are successful returns. That probably means
only a negative return is an error. The included patch fixes the issue, apulse-stream.c.diff.gz
The text was updated successfully, but these errors were encountered:
Most ALSA API functions that return status, declare return value as
either 0 or negative error code. However some functions like
snd_pcm_hw_params_any() return just int. In most cases it's the same 0 or
negative, but as was found in #108, it may return positive values too.
ALSA lib internally uses "< 0" for return value checking.
Yeah, turns out snd_pcm_hw_params_any() may return positive values too.
I looked into ALSA library code, and they almost everywhere only treat negative values as errors. So in f9c02f4 I'm changing all != 0 for error codes from ALSA to < 0 too. That patch includes yours.
Sometimes snd_pcm_hw_params_any() can return +1 when it succeeds. On my system io plugins return 1 and hw devices return 0 and both are successful returns. That probably means
only a negative return is an error. The included patch fixes the issue,
apulse-stream.c.diff.gz
The text was updated successfully, but these errors were encountered: