Mercurial > hg > ishara
view sinks/@sinkempty/sinkempty.m @ 61:eff6bddf82e3 tip
Finally implemented perceptual brightness thing.
author | samer |
---|---|
date | Sun, 11 Oct 2015 10:20:42 +0100 |
parents | 3f77126f7b5f |
children |
line wrap: on
line source
% 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