view scripts/@audiorecorder/record.m @ 19510:e1f98e402a7e

New files - @audiorecorder and @audioplayer classes * @audiorecorder: new files implementing methods for the audiorecorder class * @audioplayer: new files implementing methods for the audioplayer class
author Vytautas Jančauskas <unaudio@gmail.com>
date Wed, 11 Sep 2013 22:40:18 +0300
parents
children
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