Corrected overly strict bounds check

I'm pretty sure this assertion is too strict: it should be possible to read a buffer up to the last sample, no?