Post-processing incoming streams in Photon.Voice.Unity.Speaker
In our app, we want to be able to do so post-processing of incoming audio streams, and since we'd previously hooked into Photon.Voice.Unity.Speaker.OnAudioFrame to read the stream, this seemed like a good place to manipulate the incoming audio samples. However, now periodically we're getting total dropout of the audio from one or more participants. It seems to affect participants on links with more latency more often, and we've also seen logs like the attached, which seems to originate from the same place.
Firstly, is modifying the samples in Speaker.OnAudioFrame supported? If so, is there a sample I can look at to make sure I'm doing any setup required (e.g. locking?). Or if not, is there a supported strategy for post-processing incoming audio before it is passed through to Unity's processing?