From f3d008737e77b209c8402bcef9bfd92a730adb6b Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sun, 17 Oct 2010 10:07:29 +0000 Subject: Fix copy-paste error in example. --- Doc/library/audioop.rst | 4 ++-- 1 file 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) -- cgit v0.12