add resampling to loadFile of Data buffer base class