mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-08-10 00:52:16 +00:00
fix(linux): add frame processing latency and logging improvements (#2502)
This commit is contained in:
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user