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.
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.