- if self.volum > self.mpd_vol:
- print('Error: specified min volume (%d%%) > to current volume (%d%%)' % (
+ if self.volum >= self.mpd_vol:
+ print('Error: specified min volume (%d%%) >= to current volume (%d%%)' % (
self.volum, self.mpd_vol))
sys.exit(1)
print('fading down from %d%% to %d%% over %ss' % (self.mpd_vol, self.volum, self.tempo), file=sys.stdout)
self.volum, self.mpd_vol))
sys.exit(1)
print('fading down from %d%% to %d%% over %ss' % (self.mpd_vol, self.volum, self.tempo), file=sys.stdout)
def fade(self, mpd_vol, target):
""""""
# TODO: handle possible lost connections
def fade(self, mpd_vol, target):
""""""
# TODO: handle possible lost connections