comparison arrows/@asink/asink.m @ 0:672052bd81f8

Initial partial import.
author samer
date Wed, 19 Dec 2012 22:38:28 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:672052bd81f8
1 % asink - output arrow using sink object
2 %
3 % asink ::
4 % sink(C,R) ~'signal sink'
5 % -> arrow({[[N,1]]]},{},empty).
6 %
7 % asink ::
8 % sink(C,R) ~'signal sink',
9 % [[1,M]] ~'indices of samples to select from input'
10 % -> arrow({[[N,1]]]},{},empty).
11 %
12 % This unit will accept vectors of any size and send them to an audio output
13 % device or destination. If 2nd argument is specified as I and data is supplied
14 % in array x, then only samples x(I) are played.
15 function o=asink(sink,window)
16 if nargin==0, sink=sinknull; end
17 if nargin<2, window=[]; end
18 s.sink=sink;
19 s.window=window;
20 o=class(s,'asink',arrow(1,0));
21 end
22