Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Termination with divide by zero when starting up #525
I'm trying out mopidy on a Raspberry Pi with USB audio (using the Pi Musicbox 0.4-alpha distribution based on Debian) and when starting up, mopidy crashes in a division by zero error, coming from audio/actor.py, function _rescale, line 544.
I did a quick hack where 'if (old_max - old_min) == 0: return value', which seems to work nicely, but without knowing the code and the effects of my fix I'm not submitting a PR at this time.
The sound is played using alsa. Using Raspberry Pi's built-in analog audio there was no problem.