]> git.tuebingen.mpg.de Git - paraslash.git/commit
fade: Improve error diagnostics.
authorAndre Noll <maan@systemlinux.org>
Thu, 26 Dec 2013 13:35:08 +0000 (13:35 +0000)
committerAndre Noll <maan@systemlinux.org>
Sat, 25 Jan 2014 20:14:13 +0000 (21:14 +0100)
commit8dec140ed06a2c35a13336fec95b77b28b6b7b96
treee85ce6ec66de88ffa69ef2da8d6ff036b94e8a88
parent3260438d1bd613700d563a575d63636783391930
fade: Improve error diagnostics.

This adds a new generic error code "invalid mixer channel", which is
returned from both ALSA and OSS in case the specified mixer channel
could not be set.

Prior to this patch, ALSA would return a bad channel error also when
the given value was out of range. This is fixed by replacing the now
unused ALSA_MIX_BAD_ELEM error code by the new ALSA_MIX_RANGE code.

Finally, para_fade is changed to no longer print the list of available
channels after it failed to set the initial mode.
alsa_mix.c
error.h
fade.c
oss_mix.c