In my game, a player can go between rooms, and as they do it, the room is dynamically populated before they move into it.
As they go through, there is an AudioSource playing background music. It has a weird lag effect as the player goes into the other room, almost like a doppler effect or if I were to reduce pitch and play speed in the sound for half a second or so.
Is there a way to buffer the sound or something so this doesn’t happen? I’m using Object.Instantiate on prefabs that are already loaded to create all the assets, and I’m only creating maybe 100. Doesn’t seem like that should fuck up the sound.