added buffer_unlocksamples to buffer-copy