sound
sound copied to clipboard
After update Pixi.js to 5.1.2 LoaderResource dont have a sound property.
I have got a new version pixi.js 5.1.2 and my project was crashed because LoaderResource didn't had a sound property.
This is not enough information, please provide more details if you want help.
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.
The same happens to my project