fix(linux): add frame processing latency and logging improvements (#2502)

This commit is contained in:
Gilles Schintgen authored and GitHub committed 2024-05-12 18:55:43 -04:00
1 parent 659a426b03
commit 0a595dc7d2
5 files changed
+14 -2

No files matched your search

+4
View File
@@ -115,6 +115,10 @@ namespace audio {
opus_multistream_encoder_ctl(opus.get(), OPUS_SET_BITRATE(stream->bitrate));
opus_multistream_encoder_ctl(opus.get(), OPUS_SET_VBR(0));
BOOST_LOG(info) << "Opus initialized: "sv << stream->sampleRate / 1000 << " kHz, "sv
<< stream->channelCount << " channels, "sv
<< stream->bitrate / 1000 << " kbps (total), LOWDELAY"sv;
auto frame_size = config.packetDuration * stream->sampleRate / 1000;
while (auto sample = samples->pop()) {
buffer_t packet { 1400 };