mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
Fix copy-paste error in example.
This commit is contained in:
parent
7306ad53da
commit
f3d008737e
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue