Mercurial > hg > webaudioevaluationtool
comparison core.js @ 1735:50297ebb1c41
Fixed Bug 1204: Multiple clicks creates multiple instances.
author | Nicholas Jillings <nickjillings@users.noreply.github.com> |
---|---|
date | Fri, 01 May 2015 16:07:15 +0100 |
parents | 7c7daa0eaebc |
children | ffeef0ac7a5f |
comparison
equal
deleted
inserted
replaced
1734:6b062200a412 | 1735:50297ebb1c41 |
---|---|
168 this.bufferNode.loop = audioEngineContext.loopPlayback; | 168 this.bufferNode.loop = audioEngineContext.loopPlayback; |
169 this.bufferNode.start(startTime); | 169 this.bufferNode.start(startTime); |
170 }; | 170 }; |
171 | 171 |
172 this.stop = function() { | 172 this.stop = function() { |
173 this.bufferNode.stop(0); | 173 if (this.bufferNode != undefined) |
174 this.bufferNode = undefined; | 174 { |
175 this.bufferNode.stop(0); | |
176 this.bufferNode = undefined; | |
177 } | |
175 }; | 178 }; |
176 | 179 |
177 this.constructTrack = function(url) { | 180 this.constructTrack = function(url) { |
178 var request = new XMLHttpRequest(); | 181 var request = new XMLHttpRequest(); |
179 this.url = url; | 182 this.url = url; |