Jump to content

pixi-sound not playing all sounds


idzhurov
 Share

Recommended Posts

Hello everyone,

I am using pixi-sound in my game and have a very strange problem - some of the sounds are not playing, even though pixi says that they are.

This is what I get when I use sound.exists(alias).play(). I see that media is null and maybe this is the problem, but I cannot see a reason why it may happen.

1099830327_Screenshot2020-12-17at18_00_24.png.18c7266655b37c85aeb2ed31b99cf4d1.png

 

I am preloading all sounds like this:

PIXI.Loader.shared.add(pixiSound.add(resource.id, pixiSound.Sound.from(resource.url)));

Only after everything gets loaded I am allowing the game to start and some of the sounds are just not playing.

I am using pixi 5.3.3 and pixi-sound 3.0.5

Can anyone help?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...