mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-06 12:51:42 +02:00
Fix Anroid headset connect/disconnect
This commit is contained in:
parent
2c5c673c90
commit
869a9a276e
5 changed files with 66 additions and 30 deletions
|
@ -52,6 +52,8 @@ Resampler::Resampler(const SampleFormat& in_format, const SampleFormat& out_form
|
|||
// initialize the buffer with 20ms (~latency of the reampler)
|
||||
resample_buffer_.resize(out_format_.frameSize() * static_cast<uint16_t>(ceil(out_format_.msRate() * 20)));
|
||||
}
|
||||
#else
|
||||
LOG(WARNING, LOG_TAG) << "Soxr not available, resampling not supported\n";
|
||||
#endif
|
||||
// resampled_chunk_ = std::make_unique<msg::PcmChunk>(out_format_, 0);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue