From: g0dil Date: Thu, 13 Mar 2008 16:05:16 +0000 (+0000) Subject: Fix mixer args X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=a310a16249899420db192f01aacccaab9d8fd2f0;p=audiocontrol.git Fix mixer args --- diff --git a/Mixer.py b/Mixer.py index 4ef57fe..8fed5f5 100644 --- a/Mixer.py +++ b/Mixer.py @@ -141,18 +141,18 @@ class Mixer(Views.View): def __call__(self, value): self._mixer.set(self._channel, value) - def assignController(self, controller, title, channel, min=-12.0, max=6.0): + def assignController(self, controller, title, channel, min=-12.0, max=6.0, stops = [ 0.0 ]): controller.assign(title, self.ParamSetter(self, channel), self.ParamGetter(self, channel), Events.Event(self._context, channel), - min, max, [ 0.0 ]) + min, max, stops) class AssignController(Actions.Action): - def __init__(self, name, mixer, controller, title, channel, min=-12.0, max=6.0): + def __init__(self, name, mixer, controller, title, channel, min=-12.0, max=6.0, stops = [ 0.0 ]): Actions.Action.__init__(self, name) self._mixer = mixer self._controller = controller @@ -160,13 +160,15 @@ class AssignController(Actions.Action): self._channel = channel self._min = min self._max = max + self._stops = stops def __call__(self, binding): self._mixer.assignController(self._controller, self._title, self._channel, self._min, - self._max) + self._max, + self._stops) class MuteChannel(Actions.Action):