adjust timeout so infinite loops are less laggy
This commit is contained in:
parent
d1dc368f8f
commit
7ff9024ba5
1 changed files with 2 additions and 2 deletions
|
@ -28,7 +28,7 @@
|
||||||
F.A?.close();
|
F.A?.close();
|
||||||
F.A=A=new AudioContext;
|
F.A=A=new AudioContext;
|
||||||
// kill some time for the audio context to start
|
// kill some time for the audio context to start
|
||||||
S='@qx@'+F.value;
|
S='@qx@'+F.value.toLowerCase();
|
||||||
// stack
|
// stack
|
||||||
B=[];
|
B=[];
|
||||||
// stack variables
|
// stack variables
|
||||||
|
@ -95,6 +95,6 @@ M=_=>{
|
||||||
S=C[a]+S.slice(s--);
|
S=C[a]+S.slice(s--);
|
||||||
|
|
||||||
// loop
|
// loop
|
||||||
(S=S.slice(s))&&setTimeout(M)
|
(S=S.slice(s))&&setTimeout(M,50)
|
||||||
};M()
|
};M()
|
||||||
">#play</BUTTON> <BUTTON ONCLICK=F.A.close()>#stop
|
">#play</BUTTON> <BUTTON ONCLICK=F.A.close()>#stop
|
||||||
|
|
Loading…
Add table
Reference in a new issue