function s=pipesink(ch,rate,cmd,varargin)
	str=sprintf('pipesink(''%s'')',cmd);
	s=wavsink(ch,rate,@()pipeout(cmd),@()str,varargin{:});
end


