Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
4 registered members (fogman, Grant, AndrewAMD, juanex), 989 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Re:Turning off a loop sound #12104
03/15/03 07:48
03/15/03 07:48

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



ok ive got the code:

function init_alarm()
{
while (alarm == 0) {wait (1);}
snd_loop(alarm_wav, 100, 0); ]-- turns on
}

function Alarm_off()
{
if (alarm == 1) {wait (1);}
snd_stop(alarm_wav); ]-- should turn off
alarm = 0;
msg_show(level_cht,10);
}

can anyone help thanks.

Re: Re:Turning off a loop sound #12105
03/15/03 15:52
03/15/03 15:52
Joined: Nov 2002
Posts: 2,148
Germany
Dima Offline
Expert
Dima  Offline
Expert

Joined: Nov 2002
Posts: 2,148
Germany
Hi,

I think thats right:

////////////////////////////////////////////

var wavehandle;
function init_alarm()
{
while (alarm == 0) {wait (1);}
wavehandle = snd_loop(alarm_wav, 100, 0);
}

function Alarm_off()
{
if (alarm == 1) {wait (1);}
snd_stop(wavehandle);
alarm = 0;
msg_show(level_cht,10);
}

//////////////////////////////
....But I am not sure [Roll Eyes]


I'm not afraid of competition cos I'm know that I'm best
Re: Re:Turning off a loop sound #12106
03/15/03 18:34
03/15/03 18:34

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



thanks but it didnt work and i havent found a solution yet anyone else wanna try ;p


Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1