[squeak-dev] The Inbox: Sound-wiz.17.mcz

Hannes Hirzel hannes.hirzel at gmail.com
Wed Apr 28 15:27:38 UTC 2010

Hello Jerome and Bert

If I remember well the point of departure for Jerome was that there is
no Beeper class anymore. And he wants to have a replacement for that.

There is the class side of SampledSound / category 'sound library' /
method 'playSoundNamed'.

The method returns nil in case the sound is not there. And that method
needs to be fixed.
If I want the computer to play a sound and it does not find a sound at
least I a 'beep' sound.

This is what Jerome implemented in the String library. I do not thing
that it belongs to that place. It belongs to SampledSound. I put in a
proposal in the inbox. It currently gives a visual feedback (a dialog
box) plus a beep sound if a sound is not found.

However I am not pleased with this solution actually.

I think we should have an easier interface for the Sound library.

Something like

    Sound play: 'mooh'

When I look at class AbstractSound I wonder if it is still abstract?

Could it be an idea for a refactoring exercise. Have AbstractSound and
then Sound as subclass and then SampledSound. As a beginner with
Squeak (a multimedia environment) I would expect a class 'Sound' to be

-------------- next part --------------
A non-text attachment was scrubbed...
Name: SampledSoundPlaySoundNamed.PNG
Type: image/png
Size: 59386 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20100428/de029743/SampledSoundPlaySoundNamed.png

More information about the Squeak-dev mailing list