问题
I'm currently facing an issue while trying to implement a c++ based audio effect into exoplayer using their AudioProcessor
interface. I already have an attempt to fix my issue (described below) by decreasing output buffer size. I have a related question posted here: https://github.com/google/ExoPlayer/issues/6216
My problem is that my audio effect (rough implementation to be seen here: https://gist.github.com/l0rn/30b9f846f869e55e1b0c6cb241e19114) needs to start processing quickly after the user enables it from a button in the app. At the moment it takes between 200 and 700ms to do so. My guess is, that there is still some unprocessed audio in the output buffer that needs to be flushed until the processed audio follows.
So basically i'm searching for options how to resolve this issue and appreciate any help
来源:https://stackoverflow.com/questions/57166398/exoplayer-audioprocessor-is-delayed