]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix copy-paste error in example.
authorGeorg Brandl <georg@python.org>
Sun, 17 Oct 2010 10:07:29 +0000 (10:07 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 17 Oct 2010 10:07:29 +0000 (10:07 +0000)
Doc/library/audioop.rst

index d50a9704a75adc24dbf29c536a27dd46b1716ffd..198c11a7d2e4917f9bec34e8f6b273d1a2c78bce 100644 (file)
@@ -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)