% sinkempty - A sink with zero capacity.
classdef sinkempty < sinkbase
	methods
		function s=sinkempty(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='sinkempty'; end
		function s=construct(sig)
			s.start   = @nop;
			s.stop    = @nop;
			s.dispose = @nop;
			s.writer  = @(n)@next;

			function rem=next(x), rem=size(x,2); end
		end
	end
end
