mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-22 09:37:17 +00:00
Prevent multiple draw loops from running
This commit is contained in:
parent
c864300b00
commit
bc2a5ae192
1 changed files with 3 additions and 1 deletions
|
|
@ -71,6 +71,9 @@ Media = {
|
|||
this._chanMerge.connect(this._gainNode);
|
||||
|
||||
this._gainNode.connect(this._context.destination);
|
||||
|
||||
// Kick off the animation loop
|
||||
this._draw(0);
|
||||
return this;
|
||||
},
|
||||
|
||||
|
|
@ -85,7 +88,6 @@ Media = {
|
|||
if(this.autoPlay) {
|
||||
this.play(0);
|
||||
}
|
||||
this._draw(0);
|
||||
}
|
||||
|
||||
var error = function (error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue