modified encoder pipeline controller to listen on almost_full instead of full to avoid overruns