update the sound play method, use enum instead.