Log sound asset loading
This commit is contained in:
parent
7b6b3bf0c0
commit
0aa5766cd3
@ -41,7 +41,10 @@ class SoundSnippet {
|
||||
this.audio = new Howl({src:[this.assetPath]});
|
||||
|
||||
// Create a callback for loading finished
|
||||
this.audio.once("load", callback);
|
||||
this.audio.once("load", () => {
|
||||
console.log(`[SoundSnippet] Loaded asset: ${this.asset_name}`);
|
||||
callback();
|
||||
});
|
||||
|
||||
// Configure a thread for updating the clip volume
|
||||
setInterval(() => {
|
||||
|
Reference in New Issue
Block a user