Use sanitized value when setting the volume in setVolume()