2847
|
1 ## Copyright (C) 1996, 1997 John W. Eaton |
2313
|
2 ## |
|
3 ## This file is part of Octave. |
|
4 ## |
|
5 ## Octave is free software; you can redistribute it and/or modify it |
|
6 ## under the terms of the GNU General Public License as published by |
|
7 ## the Free Software Foundation; either version 2, or (at your option) |
|
8 ## any later version. |
|
9 ## |
|
10 ## Octave is distributed in the hope that it will be useful, but |
|
11 ## WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
13 ## General Public License for more details. |
|
14 ## |
|
15 ## You should have received a copy of the GNU General Public License |
|
16 ## along with Octave; see the file COPYING. If not, write to the Free |
5307
|
17 ## Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
|
18 ## 02110-1301, USA. |
2303
|
19 |
3416
|
20 ## -*- texinfo -*- |
5610
|
21 ## @deftypefn {Function File} {} setaudio ([@var{w_type} [, @var{value}]]) |
5314
|
22 ## Execute the shell command @samp{mixer [@var{w_type} [, @var{value}]]} |
3416
|
23 ## @end deftypefn |
2311
|
24 |
2312
|
25 ## Author: AW <Andreas.Weingessel@ci.tuwien.ac.at> |
|
26 ## Created: 5 October 1994 |
|
27 ## Adapted-By: jwe |
|
28 |
1636
|
29 function setaudio (w_type, value) |
2325
|
30 |
1636
|
31 if (nargin == 0) |
|
32 system ("mixer"); |
|
33 elseif (nargin == 1) |
|
34 system (sprintf ("mixer %s", w_type)); |
|
35 elseif (nargin == 2) |
|
36 system (sprintf ("mixer %s %d", w_type, value)); |
|
37 else |
3456
|
38 usage ("setaudio (w_type, value)"); |
1636
|
39 endif |
2325
|
40 |
1636
|
41 endfunction |