Help with a script call
I have this script call i found on discord to be able to dynamically change a bmg with another one starting from the exact timestamp the old one stopped, but it always leavs a 1 second of silence between the two.
How do I eliminate said silence?
I can't ask the author of the code because i found it on discord and the person who sent it didn't provide source
I have this script call i found on discord to be able to dynamically change a bmg with another one starting from the exact timestamp the old one stopped, but it always leavs a 1 second of silence between the two.
How do I eliminate said silence?
I can't ask the author of the code because i found it on discord and the person who sent it didn't provide source
Code:
const pos = AudioManager._bgmBuffer?.seek() ?? 0;
AudioManager.playBgm({name: "MyBGM", volume: 90, pitch: 100, pan: 0}, pos);