fix(linux): add frame processing latency and logging improvements (#2502)
This commit is contained in:
parent
659a426b03
commit
0a595dc7d2
5 changed files with 14 additions and 2 deletions
|
|
@ -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 };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue