The Trunk: Sound-ul.61.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Sound-ul.61.mcz

commits-2
Levente Uzonyi uploaded a new version of Sound to project The Trunk:
http://source.squeak.org/trunk/Sound-ul.61.mcz

==================== Summary ====================

Name: Sound-ul.61
Author: ul
Time: 24 April 2017, 1:12:18.671166 pm
UUID: 6e04eba9-2b83-416d-bb58-188fa0aa77f1
Ancestors: Sound-ul.60

- rewrote senders of #clone to use #shallowCopy

=============== Diff against Sound-ul.60 ===============

Item was changed:
  ----- Method: ReverbSound>>copySound (in category 'copying') -----
  copySound
  "Private!! Support for copying. Copy my component sound."
 
  sound := sound copy.
+ leftBuffer := leftBuffer shallowCopy.
+ rightBuffer := rightBuffer shallowCopy.
- leftBuffer := leftBuffer clone.
- rightBuffer := rightBuffer clone.
  !

Item was changed:
  ----- Method: SoundBuffer>>lowPassFiltered (in category 'utilities') -----
  lowPassFiltered
  "Answer a simple low-pass filtered copy of this buffer. Assume it is monophonic."
 
  | sz out last this |
  sz := self monoSampleCount.
+ out := self shallowCopy.
- out := self clone.
  last := self at: 1.
  2 to: sz do: [:i |
  this := self at: i.
  out at: i put: (this + last) // 2.
  last := this].
  ^ out
  !