Skip to content

Commit 9017081

Browse files
Fix to phaserjs#1776: load audiosprite from assetpack
The loader process the asset pack but use the method "audio" instead of "audiosprite". The fix is to call "audiosprite" with the right arguments.
1 parent 6a7006d commit 9017081

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/loader/Loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1776,7 +1776,7 @@ Phaser.Loader.prototype = {
17761776
break;
17771777

17781778
case "audiosprite":
1779-
this.audio(file.key, file.urls, file.jsonURL);
1779+
this.audiosprite(file.key, file.urls, file.jsonURL, file.jsonData, file.autoDecode);
17801780
break;
17811781

17821782
case "tilemap":

0 commit comments

Comments
 (0)