further small reframer fixes, workaround distortion bug by wrapping sdl

input with reframer (magic fix, someone pls tell my why)
This commit is contained in:
2024-10-01 18:30:20 +02:00
parent 45e6fe0033
commit 0039340fd5
4 changed files with 49 additions and 38 deletions

View File

@@ -58,7 +58,8 @@ struct ToxAVCallAudioSink : public FrameStream2SinkI<AudioFrame2> {
return nullptr;
}
_writer = std::make_shared<AudioStreamPopReFramer<LockedFrameStream2<AudioFrame2>>>();
// 20ms for now, 10ms would work too, further investigate stutters at 5ms (probably too slow interval rate)
_writer = std::make_shared<AudioStreamPopReFramer<LockedFrameStream2<AudioFrame2>>>(20);
return _writer;
}