summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2003-01-08 01:23:01 (GMT)
committerGuido van Rossum <guido@python.org>2003-01-08 01:23:01 (GMT)
commitdca3f2f54a5051182dec3c439abc714503386f5c (patch)
tree17f33cf6efd415953c22a8aaed4da3611888f424
parentcd0c047619b1965954b3699243acfc492cad6854 (diff)
downloadcpython-dca3f2f54a5051182dec3c439abc714503386f5c.zip
cpython-dca3f2f54a5051182dec3c439abc714503386f5c.tar.gz
cpython-dca3f2f54a5051182dec3c439abc714503386f5c.tar.bz2
Enable building and testing of ossaudiodev for Linux.
-rw-r--r--Lib/test/output/test_ossaudiodev7
-rw-r--r--setup.py1
2 files changed, 8 insertions, 0 deletions
diff --git a/Lib/test/output/test_ossaudiodev b/Lib/test/output/test_ossaudiodev
new file mode 100644
index 0000000..a512daa
--- /dev/null
+++ b/Lib/test/output/test_ossaudiodev
@@ -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
diff --git a/setup.py b/setup.py
index 046f86d..a0e931c 100644
--- 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