sound icon indicating copy to clipboard operation
sound copied to clipboard

After update Pixi.js to 5.1.2 LoaderResource dont have a sound property.

Open alevys opened this issue 5 years ago • 3 comments

I have got a new version pixi.js 5.1.2 and my project was crashed because LoaderResource didn't had a sound property.

alevys avatar Sep 02 '19 19:09 alevys

This is not enough information, please provide more details if you want help.

bigtimebuddy avatar Sep 02 '19 20:09 bigtimebuddy

I'm using 5.2.0 and am experiencing something similar. Not sure if this is related. But I load via code like this

const sfx: Record<string, string> = {
   'test': 'assets/test.mp3'
};
Object.keys(sfx).forEach(key => {
    app.loader.add(key, sfx[key]);
});

If I "lookup" the asset later on after loading such as

const rsrc = app.loader.resources['test'];

rsrc will be an object, however, it won't have the sound property on it. It seems to me that perhaps some code may need to run to ensure the proper loader is initialized? Not sure if there is a dependency order or some bootstrap/init needed to do this.

mobileben avatar Dec 06 '19 08:12 mobileben

The same happens to my project

zenios avatar Dec 06 '19 11:12 zenios