Mercurial > hg > ishara
annotate 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 |
rev | line source |
---|---|
samer@0 | 1 % sinkempty - A sink with zero capacity. |
samer@3 | 2 classdef sinkempty < sinkbase |
samer@0 | 3 methods |
samer@0 | 4 function s=sinkempty(channels,rate) |
samer@0 | 5 if nargin<2, rate=nan; end |
samer@0 | 6 if nargin<1, channels=nan; end |
samer@3 | 7 s=struct@sinkbase(channels,rate); |
samer@0 | 8 end |
samer@0 | 9 |
samer@0 | 10 function s=tostring(sig), s='sinkempty'; end |
samer@0 | 11 function s=construct(sig) |
samer@0 | 12 s.start = @nop; |
samer@0 | 13 s.stop = @nop; |
samer@0 | 14 s.dispose = @nop; |
samer@0 | 15 s.writer = @(n)@next; |
samer@0 | 16 |
samer@0 | 17 function rem=next(x), rem=size(x,2); end |
samer@0 | 18 end |
samer@0 | 19 end |
samer@0 | 20 end |