Mercurial > octave-nkf
diff scripts/audio/@audioplayer/play.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/@audioplayer/play.m@e1f98e402a7e |
children | a9c67ed90fc0 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/audio/@audioplayer/play.m Wed Sep 18 00:16:28 2013 +0300 @@ -0,0 +1,15 @@ +## -*- texinfo -*- +## @deftypefn{Function File} play (@var{playerObj}) +## Play back audio stored in an audioplayer object without blocking. +## @deftypefnx{Function File} play (@var{playerObj}, @var{start}) +## Play back audio stored in an audioplayer object starting at the time in seconds specified by @var{start}. +## @deftypefnx{Function File} play (@var{playerObj}, [@var{start}, @var{end}]) +## Play back audio stored in an audioplayer object starting at the time in seconds specified by @var{start} and ending at the time specified by @var{end}. +## @end deftypefn + +function play(varargin) + if (nargin < 1 || nargin > 2) + print_usage (); + endif + __player_play__(struct(varargin{1}).player, varargin{2:end}); +endfunction \ No newline at end of file