summaryrefslogtreecommitdiffstats
path: root/Lib/sunos4/SUNAUDIODEV.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-06-03 16:50:01 (GMT)
committerGuido van Rossum <guido@python.org>1992-06-03 16:50:01 (GMT)
commit73b715e25988519e5c06cadfcc867486229e8d40 (patch)
tree7df309a1f62b2c08cfd2ae8802b8b69c9df0b732 /Lib/sunos4/SUNAUDIODEV.py
parentb1ccc6afe0947d6becbcb2c34f7a205f04fd34e9 (diff)
downloadcpython-73b715e25988519e5c06cadfcc867486229e8d40.zip
cpython-73b715e25988519e5c06cadfcc867486229e8d40.tar.gz
cpython-73b715e25988519e5c06cadfcc867486229e8d40.tar.bz2
Initial revision
Diffstat (limited to 'Lib/sunos4/SUNAUDIODEV.py')
-rwxr-xr-xLib/sunos4/SUNAUDIODEV.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/Lib/sunos4/SUNAUDIODEV.py b/Lib/sunos4/SUNAUDIODEV.py
new file mode 100755
index 0000000..7e46871
--- /dev/null
+++ b/Lib/sunos4/SUNAUDIODEV.py
@@ -0,0 +1,25 @@
+# Symbolic constants for use with sunaudiodev module
+# The names are the same as in audioio.h with the leading AUDIO_
+# removed.
+
+# Encoding types, for fields i_encoding and o_encoding
+
+ENCODING_ULAW = 1
+ENCODING_ALAW = 2
+
+# Gain ranges for i_gain, o_gain and monitor_gain
+
+MIN_GAIN = 0
+MAX_GAIN = 255
+
+# Port names for i_port and o_port
+
+PORT_A = 1
+PORT_B = 2
+PORT_C = 3
+PORT_D = 4
+
+SPEAKER = PORT_A
+HEADPHONE = PORT_B
+
+MICROPHONE = PORT_A