mirror of
https://github.com/photonstorm/phaser
synced 2024-12-18 00:53:42 +00:00
Added fallback to noteGrainOn method call for webkit implementation when starting buffer source
This commit is contained in:
parent
9665ab2f7c
commit
00c90eb81a
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ var WebAudioSound = new Class({
|
|||
this.startTime = when;
|
||||
this.source = this.createBufferSource();
|
||||
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();
|
||||
},
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue