Mercurial > octave-nkf
comparison scripts/audio/@audiorecorder/getplayer.m @ 19541:dac3191a5301
style fixes for audioplayer and audiorecorder .m files
* @audioplayer/__get_properties__.m, @audioplayer/audioplayer.m,
@audioplayer/get.m, @audioplayer/set.m,
@audiorecorder/__get_properties__.m, @audiorecorder/audiorecorder.m,
@audiorecorder/get.m, @audiorecorder/getaudiodata.m,
@audiorecorder/getplayer.m, @audiorecorder/play.m,
@audiorecorder/set.m: Style fixes.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 31 Dec 2014 14:56:52 -0500 |
parents | fdb8a62ef17a |
children | 5802ea7037d4 |
comparison
equal
deleted
inserted
replaced
19540:fdb8a62ef17a | 19541:dac3191a5301 |
---|---|
26 if (nargin < 1 || nargin > 2) | 26 if (nargin < 1 || nargin > 2) |
27 print_usage (); | 27 print_usage (); |
28 endif | 28 endif |
29 recorder = varargin{1}; | 29 recorder = varargin{1}; |
30 data = getaudiodata (recorder); | 30 data = getaudiodata (recorder); |
31 player = audioplayer (data, get (recorder, "SampleRate"), get (recorder, "BitsPerSample")); | 31 player = audioplayer (data, get (recorder, "SampleRate"), |
32 get (recorder, "BitsPerSample")); | |
32 endfunction | 33 endfunction |