bbyford

Pixi.sound is sound a singleton?

Recommended Posts

Having issues fading out audio and play them again without duplication. I wondered if I'm using the pixi.sound library wrong as I've been setting a let music = PIXI.Loader.shared.resources[audio_name].sound and fading out that audio using it's volume. Then I create a new object with a variable for the same sound and now I get two versions of the audio... is there a common pattern for playing and stoping audio to stop duplication?

Share this post


Link to post
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...

  • Recently Browsing   0 members

    No registered users viewing this page.