]> git.tuebingen.mpg.de Git - paraslash.git/commit - m4/gengetopt/fade.m4
fade: Allow to set more than one channel in sleep mode.
authorAndre Noll <maan@systemlinux.org>
Wed, 11 Sep 2013 19:48:07 +0000 (19:48 +0000)
committerAndre Noll <maan@systemlinux.org>
Sat, 25 Jan 2014 20:08:37 +0000 (21:08 +0100)
commit886a288626fea494733568305e5b436c0072097f
tree4770ad143b39f3e385c02557b0e25a6efd82f158
parentbebc22c4b060b47ddf482f7a1cb960c589687c7c
fade: Allow to set more than one channel in sleep mode.

This makes --ivol a string option which may be specified multiple
times, each with its own channel:value pair. The channel part is
optional, invalid channels are ignored.

This change retains backwards-compatibility, i.e. providing a single
value without "channel:" prefix still works as before.

Unfortunately the patch is a bit large since set_channel() had to be
moved to the top of fade.c. This function grew another argument to
specify the channel to set.
fade.c
m4/gengetopt/fade.m4