# Play Sounds and Pause

**URL:** <https://forum.xojo.com/t/play-sounds-and-pause/68452>\
**Category:** General\
**Created:** [February 9, 2022, 6:58pm UTC](https://forum.xojo.com/t/play-sounds-and-pause/68452 "2022-02-09T18:58:15Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thomas\_ROBISSON](https://forum.xojo.com/user_avatar/forum.xojo.com/thomas_robisson/32/25592_2.png) [@Thomas\_ROBISSON](https://forum.xojo.com/u/Thomas_ROBISSON)\
**Post date:** [February 9, 2022, 6:58pm UTC](https://forum.xojo.com/t/play-sounds-and-pause/68452/1 "2022-02-09T18:58:15Z")

</div>

I did a small project because there is as strange things.  
I loop to play many times the same sound following by a Pause. I don’t wait : **while MySound.IsPlaying** because I want to wait less. The following sound can play before the previous finish. Then I wait **while Ticks+Delay**.

If you download the small project:  
[TestPauseSound](http://tom.25.free.fr/Documents/TestPauseSound.zip)  
The checkbox **Play Sound (instead of Beep)** should be checked by default but it is not, then please check it. (is it a bug?).  
Click **Ok** , you will ear 3 sounds.  
Move the slider **Delay (1/60 sec)** from 3 to 20 (1/3 second) and you will ear only one sound (on Mac Intel Mojave, on Windows it works as expected). We should ear 3 sounds.  
It works as expected if we play a Beep instead of the sound.

In my project I did differently, I use a Timer and it works as I expect. But this small project should work! No?

---

<div class="post-metadata">

**Author:** ![MarkusR](https://forum.xojo.com/user_avatar/forum.xojo.com/markusr/32/685_2.png) [@MarkusR](https://forum.xojo.com/u/MarkusR)\
**Post date:** [February 9, 2022, 9:24pm UTC](https://forum.xojo.com/t/play-sounds-and-pause/68452/2 "2022-02-09T21:24:09Z")

</div>

> [@Thomas\_ROBISSON](#):
>
> The checkbox **Play Sound (instead of Beep)** should be checked by default but it is not,

its a bug again, was fixed last year and appear again^^  
i made a feedback but it was closed.  
xojo staff are not insterested to fix bugs independently.  
maybe they autoclose all tickets by rule.

i not have a mac for testing but something like this

```auto
While System.Ticks < (TicksStart + Delai)
Wend

```

it is forbidden 😉  
it is somehow a short circuit.  
you could test with Thread.YieldToNext

---

<div class="post-metadata">

**Author:** ![MarkusR](https://forum.xojo.com/user_avatar/forum.xojo.com/markusr/32/685_2.png) [@MarkusR](https://forum.xojo.com/u/MarkusR)\
**Post date:** [February 11, 2022, 7:53am UTC](https://forum.xojo.com/t/play-sounds-and-pause/68452/3 "2022-02-11T07:53:39Z")

</div>

@William_Yu  
his example TestPauseSound lost the desktop checkbox state that was set in designer. (at 2021r3)  
if you change super to old checkbox this checked state is ok.

---

<div class="post-metadata">

**Author:** ![William\_Yu](https://forum.xojo.com/user_avatar/forum.xojo.com/william_yu/32/610_2.png) [@William\_Yu](https://forum.xojo.com/u/William_Yu)\
**Post date:** [February 11, 2022, 2:25pm UTC](https://forum.xojo.com/t/play-sounds-and-pause/68452/4 "2022-02-11T14:25:51Z")

</div>

Sounds like a bug that’s been fixed: \<[https://xojo.com/issue/67140](https://xojo.com/issue/67140)\>

---

<div class="post-metadata">

**Author:** ![MarkusR](https://forum.xojo.com/user_avatar/forum.xojo.com/markusr/32/685_2.png) [@MarkusR](https://forum.xojo.com/u/MarkusR)\
**Post date:** [February 11, 2022, 3:13pm UTC](https://forum.xojo.com/t/play-sounds-and-pause/68452/5 "2022-02-11T15:13:09Z")

</div>

@William_Yu great 🙂  
if Xojo Ide tell me there is an update to 3.1 does that means i have a license for?

---

<div class="post-metadata">

**Author:** ![William\_Yu](https://forum.xojo.com/user_avatar/forum.xojo.com/william_yu/32/610_2.png) [@William\_Yu](https://forum.xojo.com/u/William_Yu)\
**Post date:** [February 11, 2022, 4:28pm UTC](https://forum.xojo.com/t/play-sounds-and-pause/68452/6 "2022-02-11T16:28:30Z")

</div>

Not typically, but there have been times that we’ve extended the license period for some releases.

---

<div class="post-metadata">

**Author:** ![Thomas\_ROBISSON](https://forum.xojo.com/user_avatar/forum.xojo.com/thomas_robisson/32/25592_2.png) [@Thomas\_ROBISSON](https://forum.xojo.com/u/Thomas_ROBISSON)\
**Post date:** [February 11, 2022, 5:58pm UTC](https://forum.xojo.com/t/play-sounds-and-pause/68452/7 "2022-02-11T17:58:42Z")

</div>

I wasn’t at home, I just came back. I wanted to create a bug report for the checkbox set to true in the IDE but which stay uncheck when build. I can’t open your case 67140, the case is loading indefinitely. Is it THIS bug or another one? Because the title “API2 issue when converting from API1” does not tell me if it is this problem.

Edit : I reach to open the case, if I well understand the case is fixed.

---

<div class="post-metadata">

**Author:** ![MarkusR](https://forum.xojo.com/user_avatar/forum.xojo.com/markusr/32/685_2.png) [@MarkusR](https://forum.xojo.com/u/MarkusR)\
**Post date:** [February 12, 2022, 6:55am UTC](https://forum.xojo.com/t/play-sounds-and-pause/68452/8 "2022-02-12T06:55:02Z")

</div>

> [@William\_Yu](#):
>
> Sounds like a bug that’s been fixed

@William_Yu  
i updated from 3 to 3.1 but this bug is still there.  
i removed all from his example, it is only the lonely dekstopcheckbox.  
seems a converting go wrong from older to newer xojo version.  
if you add a new checkbox it is ok.

 ![Ashampoo_Snap_Samstag, 12. Februar 2022_7h49m48s_001_Xojo - TestPauseSound.xojo_binary_project](https://forum.xojo.com/uploads/default/original/2X/1/1737c889ec561aba6e9e9303581e388a4c97c02f.png)  
 ![Ashampoo_Snap_Samstag, 12. Februar 2022_7h50m14s_001_Untitled](https://forum.xojo.com/uploads/default/original/2X/a/adc92bbeed59cb4e91ecddbdd3a134a5d878fd2b.png)

---

<div class="post-metadata">

**Author:** ![William\_Yu](https://forum.xojo.com/user_avatar/forum.xojo.com/william_yu/32/610_2.png) [@William\_Yu](https://forum.xojo.com/u/William_Yu)\
**Post date:** [February 14, 2022, 3:22pm UTC](https://forum.xojo.com/t/play-sounds-and-pause/68452/9 "2022-02-14T15:22:09Z")

</div>

> [@MarkusR](#):
>
> i updated from 3 to 3.1 but this bug is still there.

Sorry I should have clarified that this bug has been fixed in a future version of Xojo. If you’re on the Testers channel you can try that build which should include this fix.

---

<div class="post-metadata">

**Author:** ![Arnaud\_N](https://forum.xojo.com/user_avatar/forum.xojo.com/arnaud_n/32/21824_2.png) [@Arnaud\_N](https://forum.xojo.com/u/Arnaud_N)\
**Post date:** [February 14, 2022, 4:45pm UTC](https://forum.xojo.com/t/play-sounds-and-pause/68452/10 "2022-02-14T16:45:04Z")

</div>

> [@William\_Yu](#):
>
> Sorry I should have clarified that this bug has been fixed in a future version of Xojo.

But talking about beta versions is prohibited in non-tester channels. Logically, you should edit your post.
