I'm setting up a music change system.
I want a track to play between scenes but then change to a different track on a couple of scenes.
I have an object that sets audio, compares a float, leads to states using play audio, then a stop audio upon float changed, compare float again, change track etc
I can get it all to work but when I enter a previous scene that had a different track that had played before, it sounds like it's adding another instance of the song playing. So switching between two scenes with different tracks led to really distorted sounding audio of what seemed like layers and layers of the same song.
I was trying to put together another approach where both play from the start and a float compare sets the volume from 0 to 1 depending on the scene but I couldn't get sound to happen that way.
Anyone having a similar issue or know a more elegant way to accomplish this?