lavr: allocate the resampling buffer with a positive size