first step processing audio buffer
adjust noise threshold
moving processing tasks into right place and fixing bug in adjust noise threshold