minSamplesNeededForDetection=bufferSize for fft method(temp)
use Buffer to copy data - fix crash