Log sound asset loading

This commit is contained in:
Evan Pratten 2020-04-19 10:04:05 -04:00
parent 7b6b3bf0c0
commit 0aa5766cd3
No known key found for this signature in database
GPG Key ID: 93AC7B3D071356D3

View File

@ -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(() => {