Harnessing Deformation to Switch On and Off the Propagation of Sound