Play sounds and envelopes also on pause

Also fixes sound loop on pause, thanks to Tobii for reporting