Changed blockbuffer parameter to samples instead of ms