Mercurial > hg > ishara
view audio/filesink.m @ 53:3ba80c9914ff
Minor doc fix, added .class to .hgignore
author | samer |
---|---|
date | Mon, 02 Feb 2015 10:47:55 +0000 |
parents | 62e31e7980e6 |
children |
line wrap: on
line source
% filesink - sink which writes a signal to a WAV file % filesink :: C:natural, R:real, path, options {...} -> sink(C,R). function s=filesink(ch,rate,file,varargin) str=sprintf('filesink(''%s'')',file); s=wavsink(ch,rate,@()filestream(file),@()str,varargin{:}); end function [str,disp]=filestream(file) import java.io.*; str=BufferedOutputStream(FileOutputStream(jfile(file))); disp=@nop; end