% sinknull - A sink that discards all data
%
% sinknull :: C:natural -> sink(C,_).
% sinknull :: C:natural, R:nonneg -> sink(C,R).
classdef sinknull < sinkbase
	methods
		function s=sinknull(channels,rate)
			if nargin<2, rate=nan; end
			if nargin<1, channels=nan; end
			s=struct@sinkbase(channels,rate);
		end
		function s=tostring(sig), s='sinknull'; end
		function s=construct(sig)
			s.start   = @nop;
			s.stop    = @nop;
			s.dispose = @nop;
			s.writer  = @(n)@(x)0;
		end
	end
end
