audio-manager
Advanced tools
Comparing version 0.1.10 to 0.1.11
{ | ||
"name": "audio-manager", | ||
"version": "0.1.10", | ||
"version": "0.1.11", | ||
"description": "Play sounds using Web Audio, fallback to HTML5 Audio", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -80,2 +80,8 @@ var inherits = require('util').inherits; | ||
if (this.source) { | ||
this.source.disconnect(gainNode); | ||
this.source.onended = null; | ||
this.source = null; | ||
} | ||
this.sourceConnector = null; | ||
@@ -305,2 +311,4 @@ this.gain = null; | ||
if (this.source) this.source.disconnect(this.sourceConnector); | ||
var sourceNode = this.source = this.audioContext.createBufferSource(); | ||
@@ -307,0 +315,0 @@ sourceNode.connect(this.sourceConnector); |
71799
1466