blob: 1cf3d5683fc70b54b722217740d4b9c5f61292f0 [file] [log] [blame]
Barry Warsaw53646881998-12-03 16:27:38 +00001audiopy - a program to control the Solaris audio device.
Barry Warsawf622a331998-12-03 19:32:38 +00002
Barry Warsaw88604051998-12-14 21:36:40 +00003Contact: Barry Warsaw
Barry Warsawf622a331998-12-03 19:32:38 +00004Email: bwarsaw@python.org
5Version: 0.1
Barry Warsaw53646881998-12-03 16:27:38 +00006
7Introduction
8
Barry Warsawa4b055f1999-04-28 19:32:46 +00009 Audiopy is a program to control the Solaris audio device, allowing
10 you to choose both the input and output devices, and to set the
11 output volume. It can be run either as a standalone command-line
12 script, or as a Tkinter based GUI application.
Barry Warsaw53646881998-12-03 16:27:38 +000013
14 Note that your version of Python must have been built with the
15 sunaudiodev module enabled. It is not enabled by default however!
16 You will need to edit your Modules/Setup file, uncomment the
17 sunaudiodev module spec line and rebuild Python.
18
19 Using audiopy, you can select one of three possible input devices:
20 the microphone, the line-in jack, or the CD in. These choices are
21 mutually exclusive; you can only have one active input device at
22 any one time (this is enforced by the underlying device). Some
23 input devices may not be supported on all Solaris machines.
24
25 You can also choose to enable any of the three possible output
26 devices: the headphone jack, the speakers, or the line-out jack.
27 You can enable any combination of these three devices.
28
Barry Warsawa4b055f1999-04-28 19:32:46 +000029 You can also set the output gain (volume) level.
30
Barry Warsaw53646881998-12-03 16:27:38 +000031Running as a GUI
32
33 Simply start audiopy with no arguments to start it as a Tkinter
34 based GUI application. It will pop up a window with two sections:
35 the top portion contains three radio buttons indicating your
36 selected input device; the bottom portion contains three
37 checkboxes indicating your selected output devices.
38
39 Note the underlined characters in the button labels. These
40 indicate keyboard accelerators so that pressing Alt+character you
41 can select that device. For example, Alt-s toggles the Speaker
Barry Warsawf622a331998-12-03 19:32:38 +000042 device. The Alt accelerators are the same as those you'd use in
43 as the short-form command line switches (see below).
Barry Warsaw53646881998-12-03 16:27:38 +000044
45 Alt-q is also an accelerator for selecting Quit from the File
46 menu.
47
Barry Warsawa4b055f1999-04-28 19:32:46 +000048 Unsupported devices will appear dimmed out in the GUI. When run
49 as a GUI, audiopy monitors the audio device and automatically
50 updates its display if the state of the device is changed by some
51 other means. In Python 1.5.2 this is done by occasionally polling
52 the device, but in Python 1.5.2 no polling is necessary (you don't
Barry Warsaw53646881998-12-03 16:27:38 +000053 really need to know this, but I thought I'd plug 1.5.2 :-).
54
55Running as a Command Line Program
56
57 You can run audiopy from the command line to select any
58 combination of input or output device, by using the command line
59 options. Actually, any option forces audiopy to run as a command
60 line program and not display its GUI.
61
62 Options have the general form
63
64 --device[={0,1}]
65 -d[-{0,1}]
66
67 meaning there is both a long-form and short-form of the switch,
68 where `device' or `d' is one of the following:
69
70 (input)
71 microphone -- m
72 linein -- i
73 cd -- c
74
75 (output)
76 headphones -- p
77 speaker -- s
78 lineout -- o
79
80 When no value is given, the switch just toggles the specified
81 device. With a value, 0 turns the device off and 1 turns the
82 device on. Any other value is an error.
83
84 For example, to turn the speakers off, turn the headphones on, and
85 toggle the cd input device, run audiopy from the command line like
86 so:
87
88 % ./audiopy -s=0 -p=1 -c
89
Barry Warsawa4b055f1999-04-28 19:32:46 +000090 Audiopy understands these other command line options:
91
92 --gain volume
93 -g volume
94 Sets the output volume to the specified gain level. This must
95 be an integer between MIN_GAIN and MAX_GAIN (usually [0..255],
96 but use the -h option to find the exact values).
Barry Warsaw53646881998-12-03 16:27:38 +000097
98 --version
99 -v
100 Print the version number and exit
101
102 --help
103 -h
104 Print a help message and exit
105
106
107
108Local Variables:
109indent-tabs-mode: nil
110End: