Mercurial > octave-nkf
view scripts/audio/@audiorecorder/record.m @ 19531:77b52b86b419
change @audiorecorder method docstrings to work with new texinfo
* audiorecorder.m, get.m, getaudiodata.m, play.m, record.m, set.m: change
stand-alone deftypefnx tags to deftypefn tags
author | Vytautas Jančauskas <unaudio@gmail.com> |
---|---|
date | Fri, 20 Sep 2013 00:51:21 +0300 |
parents | ee3ec3f02358 |
children | 8bb399569393 |
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}. ## @end deftypefn ## @deftypefn{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