audioop module documentation bug

Hello, I found a bug in http://docs.python.org/library/audioop.html In the example method, def mul_stereo(sample, width, lfactor, rfactor), the result of its first two lines: lsample = audioop.tomono(sample, width, 1, 0) rsample = audioop.tomono(sample, width, 0, 1) ... is discarded by the following two lines: lsample = audioop.mul(sample, width, lfactor) rsample = audioop.mul(sample, width, rfactor) ... resulting in a sample twice as long being returned as is intended, i.e. "slowing down” of the audio. The fix for the third and fourth lines is: lsample = audioop.mul(lsample, width, lfactor) rsample = audioop.mul(rsample, width, rfactor) Best, Kalle Karjalainen

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 21.06.2010 21:50, schrieb Kalle Karjalainen:
Hi Kalle, thanks for the report, this is now fixed in the development docs. regards, Georg -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) iEYEARECAAYFAky6ytcACgkQN9GcIYhpnLCEbwCcDOpeNBveWtWryoeolxfs2yG8 mFYAoJa/WhqfaXr2E+ldPSKIC9thUyrS =9iVU -----END PGP SIGNATURE-----

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 21.06.2010 21:50, schrieb Kalle Karjalainen:
Hi Kalle, thanks for the report, this is now fixed in the development docs. regards, Georg -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) iEYEARECAAYFAky6ytcACgkQN9GcIYhpnLCEbwCcDOpeNBveWtWryoeolxfs2yG8 mFYAoJa/WhqfaXr2E+ldPSKIC9thUyrS =9iVU -----END PGP SIGNATURE-----
participants (2)
-
Georg Brandl
-
Kalle Karjalainen