comparison scripts/audio/@audioplayer/get.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
28 ## @end deftypefn 28 ## @end deftypefn
29 29
30 function result = get (varargin) 30 function result = get (varargin)
31 player = varargin{1}; 31 player = varargin{1};
32 properties = __get_properties__ (player); 32 properties = __get_properties__ (player);
33 if nargin == 1 33 if (nargin == 1)
34 result = properties; 34 result = properties;
35 elseif nargin == 2 35 elseif (nargin == 2)
36 if ischar (varargin{2}) 36 if (ischar (varargin{2}))
37 result = getfield (properties, varargin{2}); 37 result = getfield (properties, varargin{2});
38 else 38 else
39 result = {}; 39 result = {};
40 index = 1; 40 index = 1;
41 for property = varargin{2} 41 for property = varargin{2}