You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cancelAnimationFrame(that.animationId);//since the sound is top and animation finished, stop the requestAnimation to prevent potential memory leak,THIS IS VERY IMPORTANT!
186
+
return;
187
+
};
188
+
};
172
189
varstep=Math.round(array.length/meterNum);//sample limited data from the total array
173
190
ctx.clearRect(0,0,cwidth,cheight);
174
191
for(vari=0;i<meterNum;i++){
175
192
varvalue=array[i*step];
176
-
if(that.status===0){
177
-
value=0;//fix when some sounds end the value still not back to zero
0 commit comments