Added fallback to noteGrainOn method call for webkit implementation when starting buffer source

This commit is contained in:
Pavle Goloskokovic 2018-01-06 14:59:56 +01:00
parent 9665ab2f7c
commit 00c90eb81a

View file

@ -160,7 +160,7 @@ var WebAudioSound = new Class({
this.startTime = when; this.startTime = when;
this.source = this.createBufferSource(); this.source = this.createBufferSource();
this.applyConfig(); this.applyConfig();
this.source.start(Math.max(0, when), Math.max(0, offset), Math.max(0, duration)); (this.source.start || this.source.noteGrainOn).call(this.source, Math.max(0, when), Math.max(0, offset), Math.max(0, duration));
this.resetConfig(); this.resetConfig();
}, },
/** /**