[squeak-dev] Many questions about sounds :-)
Christoph.Thiede at student.hpi.uni-potsdam.de
Mon Aug 30 16:55:50 UTC 2021
For follow-up, I have solved the rest sound issue via the following do-it:
(RepeatingSound repeatForever: (RestSound dur: 10)) play
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 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...
More information about the Squeak-dev