% oggenc - sink which writes audio signal to OGG file using oggenc
function s=oggenc(ch,rate,file,varargin)
	opts=options('quality',5,varargin{:});
	s=pipesink(ch,rate,sprintf('oggenc -q %d -o "%s" -',opts.quality,file));
