[Bug] user interrupt does not stop sound anymore

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug] user interrupt does not stop sound anymore

Bert Freudenberg
It used to be the case that cmd-dot would stop sounds playing in the background. It doesn’t anymore.

Try

        AbstractSound stereoBachFugue play

This appears to be due to the SoundService refactoring in userInterruptWatcher but I’m not familiar with that design.

- Bert -






smime.p7s (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [Bug] user interrupt does not stop sound anymore

marcel.taeumel
Hi Bert,

the expression "SoundService defaultOrNil" returns the DummySoundSystem in my system although your Bach Fugue is playing and I can hear it. This seems to be wrong. If I can hear sound, the BaseSoundSystem should be in charge, right?

If the following code snippet mutes this example, CMD+. will do, too:

SoundService defaultOrNil ifNotNil: [ : soundSystem | soundSystem shutDown ].

But it does not. Bug! Bug! Bug! :-)

Best,
Marcel
Reply | Threaded
Open this post in threaded view
|

Re: [Bug] user interrupt does not stop sound anymore

timrowledge

> On 05-04-2016, at 9:35 AM, marcel.taeumel <[hidden email]> wrote:
>
> Hi Bert,
>
> the expression "SoundService defaultOrNil" returns the DummySoundSystem in
> my system although your Bach Fugue is playing and I can hear it. This seems
> to be wrong. If I can hear sound, the BaseSoundSystem should be in charge,
> right?
>
> If the following code snippet mutes this example, CMD+. will do, too:
>
> SoundService defaultOrNil ifNotNil: [ : soundSystem | soundSystem shutDown
> ].
>
> But it does not. Bug! Bug! Bug! :-)

Ooh, if you’re digging into the sound system process etc do try to work out why short samples do not appear to get played when the stop-on-silence preference is true. I kinda suspect that the sample being checked for all-0 is not the one that needs to be played next but perhaps the one after it; if you only have a single-buffers worth of sound (like a Pop!) then maybe that could explain why it never gets to experience its brief moment of glory?


tim
--
tim Rowledge; [hidden email]; http://www.rowledge.org/tim
How was Thomas J. Watson buried?  9 edge down.