[squeak-dev] The Inbox: Sound-dtl.67.mcz

Stéphane Rollandin lecteur at zogotounga.net
Thu Dec 12 08:08:10 UTC 2019


> Rather than add #hasVolumeEnvelope and #volumeEnvelope, would
> this achieve the same thing?
> 
>      AbstractSound>>loudness
>          "Answer the current volume setting for this sound."
>          ^ envelopes detect: [:e | e isKindOf: VolumeEnvelope]
>              ifFound: [ :envelope | envelope scale ]
>              ifNone: [scaledVol asFloat / ScaleFactor]

Sure. It just happens I have other senders (well, one other) for 
#hasVolumeEnvelope in muO. But for trunk it's fine. In fact, I do not 
even know if this change to #loudness is needed in trunk. Is someone 
else than me doing sound in Squeak at the moment?

Stef





More information about the Squeak-dev mailing list