Simplify sound_timer function