My project uses an audio middleware and has a lot of extended logics for playing audio, by checking the dialogue sequence command, I have found the AudioWait() requires direct access to the audio clip file.
So my first question is that if I need the AudioWait() to access a custom scriptable object file (our middleware), is that possible?
Say it is not possible and I need to write my own LUA script to handle the audio play, here are my questions:
1. In most case, my game allows player to click continue button to advance to the next dialogue node, if player does that, current audio voice for current entry should be immediately stopped, I guess I need call my middleware to stop the audio at OnConversationLineEnd() and also OnConversationCancelled(), am I missing any?
2. If the player does not click continue button to advance, the audio file should be fully played before dialogue automatically advance to next node, similar as AudioWait() does. But by default the dialogue duration is based on Character per second option with the total characters in a single node, can you give me a brief idea how to achieve this?
I actually have more questions but before we getting there, let's focus on the most important questions here first
