annotate audio/filesink.m @ 19:1eb0ea29ec40

Doesn't belong here.
author samer
date Thu, 17 Jan 2013 13:32:19 +0000
parents 672052bd81f8
children 62e31e7980e6
rev   line source
samer@0 1 function s=filesink(ch,rate,file,varargin)
samer@0 2 str=sprintf('filesink(''%s'')',file);
samer@0 3 s=wavsink(ch,rate,@()filestream(file),@()str,varargin{:});
samer@0 4 end
samer@0 5
samer@0 6 function [str,disp]=filestream(file)
samer@0 7 import java.io.*;
samer@0 8 str=BufferedOutputStream(FileOutputStream(jfile(file)));
samer@0 9 disp=@nop;
samer@0 10 end