Project

General

Profile

Actions

Bug #140

open

Play command (for sound) isn't working.

Added by Brian Flanagan almost 5 years ago. Updated over 1 year ago.

Status:
New
Priority:
Low
Target version:
-
Start date:
02/06/2020
Due date:
% Done:

0%

Estimated time:
8:00 h
Affected version:

Description

Example: Help_24 from AMOSPro_Examples.

The first few times I ran this all of the sounds worked. Then, for no apparent reason, they quit working.
The Bell command continues to work, but the Play commands just quit.

I even tried stopping Visual Studio and Google Chrome, and restarting, but they still weren't working. Yes, I also tried clearing the browser cache. Originally, I had voice 1 and 2 for the 1st and 2nd play command, but I changed it to 15 to make sure it wasn't voice related.

Since this is an intermittent error, you may need to close and re-open or run it several times before the Play command quits working.

Here's a complete example:

#manifest:"amiga"
#speed: "safe"

Print "Press mouse button to cycle sounds."
Repeat
    Print "Boom!" : Boom
    ClickAndRelease
    Print "Play 1" : For N=20 To 40 : Play 15,N,1 : Next
    ClickAndRelease
    Print "Shoot." : Shoot
    ClickAndRelease
    Print "Play 2" : For N=20 To 40 : Play 15,41-N,1 : Next
    ClickAndRelease
    Print "Bell" : Bell
    ClickAndRelease
Until The_End_Of_Time

Procedure ClickAndRelease
    Repeat Until Mouse Key <> 0
    Repeat Until Mouse Key = 0
End Proc
Actions

Also available in: Atom PDF