[squeakland] Request for Help - Question 20100501
carnen at mac.com
Tue Jan 5 17:42:19 EST 2010
Thank you very much for your prompt answer.
I'm afraid however it is too much for my level of knowledge.
If I understand you correctly, you are saying what I want to do
cannot be done by a regular user.
Somehow someone has to modify the Etoys code and you feel I can do it??
On Jan 5, 2010, at 5:02 PM, Karl Ramberg wrote:
> On 2010-01-05 18:33, Carlos Rabassa wrote:
>> This is my request:
>> Any help will be appreciated.
>> Carlos Rabassa
>> Montevideo, Uruguay
> there is a bug in the system.
> SoundService/BaseSoundSystem creates its unique instances without
> leaving a reference as far as I can tell.
> When we tell the sound to stop we don't know which sound to stop...
> Here is a proposed fix to that:
> Player>>beep: anObject
> "Play given sound or at least beep."
> | sound |
> anObject isString
> ifTrue: [sound _ SoundService default soundNamed: anObject.
> SoundPlayer playSound: sound.
> self costume
> setProperty: #playingSound
> toValue: sound. ]
> ifFalse: [SoundPlayer resumePlaying: anObject quickStart: true.
> self costume setProperty: #playingSound toValue: anObject]
More information about the squeakland