Mercurial > octave-nkf
view 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 |
line wrap: on
line source
## -*- texinfo -*- ## @deftypefn{Function File} record (@var{recorderObj}) ## Record audio without blocking. The recording will continue until you use the stop method on @var{recorderObj}. ## @deftypefnx{Function File} record (@var{playerObj}, @var{length}) ## Record audio without blocking. The recording will continue for @var{length} seconds. ## @end deftypefn function record(varargin) if (nargin < 1 || nargin > 2) print_usage (); endif __recorder_record__(struct(varargin{1}).recorder, varargin{2:end}); endfunction