mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-15 08:17:07 +00:00
AudioContext resume does not apply to OfflineAudioContext
This commit is contained in:
parent
8a74995f2e
commit
36c19e3762
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ define(["Tone/core/Tone", "Tone/core/Emitter", "Tone/core/Timeline", "Tone/shim/
|
|||
* @return {Promise}
|
||||
*/
|
||||
Tone.Context.prototype.resume = function(){
|
||||
if (this._context.state !== "running"){
|
||||
if (this._context.state !== "running" && this._context instanceof AudioContext){
|
||||
return this._context.resume();
|
||||
} else {
|
||||
return Promise.resolve();
|
||||
|
|
Loading…
Reference in a new issue