Quantcast
Channel: Pixi.js Latest Topics
Viewing all articles
Browse latest Browse all 3980

Pixi.sound is sound a singleton?

$
0
0

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?


Viewing all articles
Browse latest Browse all 3980

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>