Add resampling to sampler plugin

Closes #66.
Allow to change playback rate in sampler example on mac