Skip to content

Commit

Permalink
Chrome 56 bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
surikov committed Jan 26, 2017
1 parent 4d67099 commit c249e5a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions WebAudioFontPlayer.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
console.log('WebAudioFont Player v1.44');
console.log('WebAudioFont Player v1.45');
function WebAudioFontPlayer() {
this.envelopes = [];
this.afterTime = 0.1;
Expand Down Expand Up @@ -32,8 +32,9 @@ function WebAudioFontPlayer() {
}
}
var envelope = this.findEnvelope(audioContext, target, startWhen, waveDuration);
envelope.gain.setValueAtTime(0, this.nearZero);
envelope.gain.setValueAtTime(startWhen, this.nearZero);
//envelope.gain.setValueAtTime(0, this.nearZero);
//envelope.gain.setValueAtTime(startWhen, this.nearZero);
envelope.gain.value=this.nearZero;
var a = 0.005;
var h = 0.25;
var d = 0.75;
Expand Down

0 comments on commit c249e5a

Please sign in to comment.