mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-11 21:57:59 +02:00
Add optional resampling of the output stream
This commit is contained in:
parent
549fcba40f
commit
3fc8b9ca08
8 changed files with 185 additions and 98 deletions
|
@ -121,7 +121,7 @@ void Controller::onMessageReceived(ClientConnection* /*connection*/, const msg::
|
|||
sampleFormat_ = decoder_->setHeader(headerChunk_.get());
|
||||
LOG(NOTICE) << TAG("state") << "sampleformat: " << sampleFormat_.rate << ":" << sampleFormat_.bits << ":" << sampleFormat_.channels << "\n";
|
||||
|
||||
stream_ = make_shared<Stream>(sampleFormat_);
|
||||
stream_ = make_shared<Stream>(sampleFormat_, settings_.player.sample_format);
|
||||
stream_->setBufferLen(serverSettings_->getBufferMs() - settings_.player.latency);
|
||||
|
||||
const auto& pcm_device = settings_.player.pcm_device;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue