diff scripts/@audiorecorder/recordblocking.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 diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/scripts/@audiorecorder/recordblocking.m	Wed Sep 11 22:40:18 2013 +0300
@@ -0,0 +1,12 @@
+## -*- texinfo -*-
+## @deftypefn{Function File} recordblocking (@var{recorderObj}, @var{length})
+## Record audio with blocking (synchronous I/O). You must specify the number of seconds
+## that the recording will continue for.
+## @end deftypefn
+
+function recordblocking(varargin)
+  if (nargin != 2)
+    print_usage ();
+  endif 
+  __recorder_recordblocking__(struct(varargin{1}).recorder, varargin{2});
+endfunction
\ No newline at end of file