summaryrefslogtreecommitdiffstats
path: root/Lib/audiodev.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-12-13 00:19:56 (GMT)
committerGuido van Rossum <guido@python.org>1996-12-13 00:19:56 (GMT)
commit27eb14d89479ff23b7f66b274e46993e386e7aa7 (patch)
tree8c6ee0ffa88fd8d62c293364ebf04867433abad2 /Lib/audiodev.py
parent25bcdb0e56bf2f23010d77535e863a3879dcce44 (diff)
downloadcpython-27eb14d89479ff23b7f66b274e46993e386e7aa7.zip
cpython-27eb14d89479ff23b7f66b274e46993e386e7aa7.tar.gz
cpython-27eb14d89479ff23b7f66b274e46993e386e7aa7.tar.bz2
Added support for 4-channel on SGI.
Allow specifying the test file on the command line.
Diffstat (limited to 'Lib/audiodev.py')
-rw-r--r--Lib/audiodev.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/Lib/audiodev.py b/Lib/audiodev.py
index 7a8a254..c76a502 100644
--- a/Lib/audiodev.py
+++ b/Lib/audiodev.py
@@ -23,6 +23,7 @@ class Play_Audio_sgi:
self.nchannelslist = [
(1, AL.MONO),
(2, AL.STEREO),
+ (4, AL.QUADRO),
]
self.sampwidthlist = [
(1, AL.SAMPLE_8),
@@ -224,7 +225,12 @@ def AudioDev():
else:
return Play_Audio_sgi()
-def test(fn = 'f:just samples:just.aif'):
+def test(fn = None):
+ import sys
+ if sys.argv[1:]:
+ fn = sys.argv[1]
+ else:
+ fn = 'f:just samples:just.aif'
import aifc
af = aifc.open(fn, 'r')
print fn, af.getparams()