]> granicus.if.org Git - python/commitdiff
Enable building and testing of ossaudiodev for Linux.
authorGuido van Rossum <guido@python.org>
Wed, 8 Jan 2003 01:23:01 +0000 (01:23 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 8 Jan 2003 01:23:01 +0000 (01:23 +0000)
Lib/test/output/test_ossaudiodev [new file with mode: 0644]
setup.py

diff --git a/Lib/test/output/test_ossaudiodev b/Lib/test/output/test_ossaudiodev
new file mode 100644 (file)
index 0000000..a512daa
--- /dev/null
@@ -0,0 +1,7 @@
+test_ossaudiodev
+expected rate >= 0, not -1
+expected sample size >= 0, not -2
+nchannels must be 1 or 2, not 3
+unknown audio encoding: 177
+for linear unsigned 16-bit little-endian audio, expected sample size 16, not 8
+for linear unsigned 8-bit audio, expected sample size 8, not 16
index 046f86da0fa59c098396c295be30eff27c9ce91a..a0e931c74b7eaced8ddc8e1ecf68b3836467c3dc 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -722,6 +722,7 @@ class PyBuildExt(build_ext):
         if platform == 'linux2':
             # Linux-specific modules
             exts.append( Extension('linuxaudiodev', ['linuxaudiodev.c']) )
+            exts.append( Extension('ossaudiodev', ['ossaudiodev.c']) )
 
         if platform == 'sunos5':
             # SunOS specific modules