Skip to content

Commit dc8ef8a

Browse files
Added audioSprite multifile loader
1 parent 5e89c9b commit dc8ef8a

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

v3/src/scene/plugins/Loader.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,14 @@ var Loader = new Class({
111111
// Multi-File Loaders
112112
// ---------------------------------------------------
113113

114+
audioSprite: function (key, urls, json, config, audioXhrSettings, jsonXhrSettings)
115+
{
116+
this.audio(key, urls, config, audioXhrSettings);
117+
this.json(key, json, jsonXhrSettings);
118+
119+
return this;
120+
},
121+
114122
unityAtlas: function (key, textureURL, atlasURL, textureXhrSettings, atlasXhrSettings)
115123
{
116124
// Returns an object with two properties: 'texture' and 'data'

0 commit comments

Comments
 (0)