How To Continuously Draw Canvas Wave Using Dynamic Array In Html5?
Here is my problems 1) I have dynamic y array data ,using that array how to continuously draw the wave. if Y array data complete use same y array data to continue. 2) sound auto p
Solution 1:
It is not very clear to me what you are trying to do, but checking quickly you code, I could find an error, if n can be 199, and you have 140 elements in Ydata, in some point you could have an exception,
If you are trying to have "animate" in some type of loop you should try to change setTimeOut by setInterval:
http://www.w3schools.com/jsref/met_win_setinterval.asp
Post a Comment for "How To Continuously Draw Canvas Wave Using Dynamic Array In Html5?"