summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-10-17 10:07:29 (GMT)
committerGeorg Brandl <georg@python.org>2010-10-17 10:07:29 (GMT)
commitf3d008737e77b209c8402bcef9bfd92a730adb6b (patch)
treeb4e88d563d6d97affcfbc6aee44611d17a415614
parent7306ad53dab66a0d9a593375da4c981f1df208a4 (diff)
downloadcpython-f3d008737e77b209c8402bcef9bfd92a730adb6b.zip
cpython-f3d008737e77b209c8402bcef9bfd92a730adb6b.tar.gz
cpython-f3d008737e77b209c8402bcef9bfd92a730adb6b.tar.bz2
Fix copy-paste error in example.
-rw-r--r--Doc/library/audioop.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/audioop.rst b/Doc/library/audioop.rst
index d50a970..198c11a 100644
--- a/Doc/library/audioop.rst
+++ b/Doc/library/audioop.rst
@@ -230,8 +230,8 @@ and recombined later. Here is an example of how to do that::
def mul_stereo(sample, width, lfactor, rfactor):
lsample = audioop.tomono(sample, width, 1, 0)
rsample = audioop.tomono(sample, width, 0, 1)
- lsample = audioop.mul(sample, width, lfactor)
- rsample = audioop.mul(sample, width, rfactor)
+ lsample = audioop.mul(lsample, width, lfactor)
+ rsample = audioop.mul(rsample, width, rfactor)
lsample = audioop.tostereo(lsample, width, 1, 0)
rsample = audioop.tostereo(rsample, width, 0, 1)
return audioop.add(lsample, rsample, width)