summaryrefslogtreecommitdiff
path: root/Lib/wave.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-04-23 21:40:02 +0000
committerGuido van Rossum <guido@python.org>1998-04-23 21:40:02 +0000
commit950d8305c095681d548750db9151f59828ab4761 (patch)
tree47df1244cdb6ee4f49e4e9e1f474c032ef683db3 /Lib/wave.py
parenta04fe54b0a8a15d60838d24c36244a554dce200c (diff)
downloadcpython-950d8305c095681d548750db9151f59828ab4761.tar.gz
Small corrections to comments that were cloned from aifc; moreover
the description of setparams() was wrong. wave.py: Include the tag of an unknown format in the exception.
Diffstat (limited to 'Lib/wave.py')
-rw-r--r--Lib/wave.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/wave.py b/Lib/wave.py
index 365bbf9c77..35e3b6bf3c 100644
--- a/Lib/wave.py
+++ b/Lib/wave.py
@@ -15,9 +15,9 @@
# getsampwidth() -- returns sample width in bytes
# getframerate() -- returns sampling frequency
# getnframes() -- returns number of audio frames
-# getcomptype() -- returns compression type ('NONE' for AIFF files)
+# getcomptype() -- returns compression type ('NONE' for linear samples)
# getcompname() -- returns human-readable version of
-# compression type ('not compressed' for AIFF files)
+# compression type ('not compressed' linear samples)
# getparams() -- returns a tuple consisting of all of the
# above in the above order
# getmarkers() -- returns None (for compatibility with the
@@ -49,7 +49,7 @@
# setcomptype(type, name)
# -- set the compression type and the
# human-readable compression type
-# setparams(nchannels, sampwidth, framerate, nframes, comptype, compname)
+# setparams(tuple)
# -- set all parameters at once
# tell() -- return current position in output file
# writeframesraw(data)
@@ -332,7 +332,7 @@ class Wave_read:
if wFormatTag == WAVE_FORMAT_PCM:
self._sampwidth = (_read_short(chunk) + 7) / 8
else:
- raise Error, 'unknown format'
+ raise Error, 'unknown format: ' + `wFormatTag`
self._framesize = self._nchannels * self._sampwidth
self._comptype = 'NONE'
self._compname = 'not compressed'