[squeak-dev] Many questions about sounds :-)

christoph.thiede at student.hpi.uni-potsdam.de christoph.thiede at student.hpi.uni-potsdam.de
Mon Nov 1 22:44:54 UTC 2021


Ha. This is funny. Just stumbled upon the preference

	SoundPlayer stopSoundWhenDone

which apparently does just what I was reinventing through my "NullSound". :-)

Best,
Christoph

---
Sent from Squeak Inbox Talk

On 2021-08-30T16:55:50+00:00, christoph.thiede at student.hpi.uni-potsdam.de wrote:

> For follow-up, I have solved the rest sound issue via the following do-it:
> 
> 
> (RepeatingSound repeatForever: (RestSound dur: 10)) play
> 
> 
> Best,
> 
> Christoph
> 
> ________________________________
> Von: Squeak-dev <squeak-dev-bounces at lists.squeakfoundation.org> im Auftrag von tim Rowledge <tim at rowledge.org>
> Gesendet: Dienstag, 29. Juni 2021 01:48:28
> An: The general-purpose Squeak developers list
> Betreff: Re: [squeak-dev] Many questions about sounds :-)
> 
> 
> 
> > On 2021-06-28, at 4:08 PM, Thiede, Christoph <Christoph.Thiede at student.hpi.uni-potsdam.de> wrote:
> >
> > Hi Tim, thanks for the background! So most likely, I will implement some kind of infinite NullSound to work around the issue.
> >
> 
> I don't think you should need that; the soundplayer simpy fills the buffer with zeros if it is set to keep playing even when there are no actual sounds. See SoundPlayer class>>#playLoop near the end where you see 'willStop'.
> 
> Also I suspect that RestSound is already a silent note. If you see what I mean.
> 
> 
> > But then my profiler stack must be wrong? Is this an issue with MessageTally?
> 
> Oh my, be careful about opening that can of vermiform creatures. MessageTally is not very helpful about primitive times. There is/was an improved version somewhere. I'll leave that to someone else to explain.
> 
> 
> tim
> --
> tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
> Breakthrough: It finally booted on the first try.
> 
> 
> 
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20210830/f593d474/attachment.html>
> 
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20211101/71ca11d8/attachment.html>


More information about the Squeak-dev mailing list