]> granicus.if.org Git - python/commitdiff
Added support for 4-channel on SGI.
authorGuido van Rossum <guido@python.org>
Fri, 13 Dec 1996 00:19:56 +0000 (00:19 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 13 Dec 1996 00:19:56 +0000 (00:19 +0000)
Allow specifying the test file on the command line.

Lib/audiodev.py

index 7a8a25447052cd967d9e4f009e9a797940adf78a..c76a5022d8b3b08f6bde96724dfda5a53f9267ea 100644 (file)
@@ -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()