#Seamless audio playing
11 messages · Page 1 of 1 (latest)
What might be delaying the spawn is actually the loading of the sound file
So you could trying loading the mp3/ogg before having to do the swap
It is already loaded though. I just pass the handle when playing it.
(I load everything at the start of the game)
I basically have an intro that is played once and after it finishes (tried on running on Update and PostUpdate) I have a system that removes all sound components and reinserts an AudioPlayer with the loop part of the music.
And there is a small gap between the intro and loop parts that I am trying to eliminate.
I guess I have to make a stream that does this using decoder()...
Well I looked into this a bit more and it is too complicated to do. Maybe something for after the jam.
or actually bevy kira audio maybe able to do this
hmm
Well no, even that doesn't expose enough control to do this seamlessly...