Hey, all. Something I've been curious about would help me creating timed cutscenes. In my visual novel, I use show picture + play BGM commands to show cutscenes with visuals timed to the music (using standard show picture commands), but some players have noted that sometimes, the two can get desynced, leading to visuals lagging behind audio.
I'm curious if there's a native JS function that can be used to check if a certain position has been reached in the music to with higher accuracy than a second (millisecond, hundredth of a second) or even just a way of converting the current audio position for a BGM or BGS track to something more accurate than the last second elapsed. Googling it, I've seen code that reads 'pos' from the audiobuffer, but only in whole seconds. Thank you!
I'm curious if there's a native JS function that can be used to check if a certain position has been reached in the music to with higher accuracy than a second (millisecond, hundredth of a second) or even just a way of converting the current audio position for a BGM or BGS track to something more accurate than the last second elapsed. Googling it, I've seen code that reads 'pos' from the audiobuffer, but only in whole seconds. Thank you!