Advertisement
Guest User

Untitled

a guest
Oct 18th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. Upon some inspection, I have a few observations/questions;
  2. Firstly, the not so important bit, on MumbleSource.cs line 166 there's a while loop to get rid of some samples if the buffer's too long. I believe this might be the source of the stutter we're hearing.
  3. Second and the important bit is, this same method I mentioned above, Prepare is called by AudioCore.Process which in turn is called by Microphone.AudioAvailable and BaseAudioSink.Read. However the second call, BaseAudioSink.Read is called within MumbleSink.OnSamplesProcessed which is the handler for AudioSystem.Core.SamplesProcessedEvent, which is invoked within AudioCode.Process. Therefore, the only thing that's triggering AudioCore.Process in the first place is Microphone.AudioAvailable. This means that we are consuming the reception buffers, only when we have input into our own microphone which is, obviously wrong.
  4. Am I missing something here?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement