diff --git a/bnplay-audio-api.html b/bnplay-audio-api.html index 16fceef..ed7b75c 100644 --- a/bnplay-audio-api.html +++ b/bnplay-audio-api.html @@ -111,7 +111,7 @@ return buffer; } - static async load() { + static async initialize() { this.audioData = await this.audioCtx.decodeAudioData( await this.getSample(), ); @@ -149,7 +149,7 @@ const btnToggle = document.getElementById("btnToggle"), divStatus = document.getElementById("divStatus"); - return BNP.load() + return BNP.initialize() .then(() => { btnToggle.classList.remove("btn-ctrl-loading"); btnToggle.removeAttribute("disabled"); diff --git a/bnplay-audio-tag.html b/bnplay-audio-tag.html index 7d38dfd..549a011 100644 --- a/bnplay-audio-tag.html +++ b/bnplay-audio-tag.html @@ -67,7 +67,7 @@ } } - static load(player1, player2) { + static initialize(player1, player2) { this.player1 = player1; this.player2 = player2; } @@ -104,7 +104,7 @@ class UI { static load() { - BNP.load( + BNP.initialize( document.getElementById("player1"), document.getElementById("player2"), );