data: handle resampling boundaries better

   - this will contract the actual data segment such that all resampling
     window artefacts are removed, meaning you might get 8/16 seconds less
     data than asked, tough tits.