fix audio-mixer sleep time calculation