Mercurial > octave-nkf
comparison scripts/audio/@audiorecorder/record.m @ 19522:ee3ec3f02358
maint: moved @audiorecorder and @audioplayer folders inside the audio folder
author | Vytautas Jančauskas <unaudio@gmail.com> |
---|---|
date | Wed, 18 Sep 2013 00:16:28 +0300 |
parents | scripts/@audiorecorder/record.m@e1f98e402a7e |
children | 77b52b86b419 |
comparison
equal
deleted
inserted
replaced
19521:480407a8d226 | 19522:ee3ec3f02358 |
---|---|
1 ## -*- texinfo -*- | |
2 ## @deftypefn{Function File} record (@var{recorderObj}) | |
3 ## Record audio without blocking. The recording will continue until you use the stop method on @var{recorderObj}. | |
4 ## @deftypefnx{Function File} record (@var{playerObj}, @var{length}) | |
5 ## Record audio without blocking. The recording will continue for @var{length} seconds. | |
6 ## @end deftypefn | |
7 | |
8 function record(varargin) | |
9 if (nargin < 1 || nargin > 2) | |
10 print_usage (); | |
11 endif | |
12 __recorder_record__(struct(varargin{1}).recorder, varargin{2:end}); | |
13 endfunction |