Add the subsampling to the slice_wave function, so it has the same arguments as get-audio