Fix Anroid headset connect/disconnect

This commit is contained in:
badaix 2020-09-29 22:32:23 +02:00
parent 2c5c673c90
commit 869a9a276e
5 changed files with 66 additions and 30 deletions

View file

@ -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);
}