use a trailing average for _nextOutputLoudness
use a trailing average for sleep time, move loudness to RB
Merge pull request #2413 from birarda/audio-scaling

more audio scaling tweaks