Opus encoder resamples to 48000:16:2

This commit is contained in:
badaix 2020-08-03 22:52:42 +02:00
parent 199c30b69d
commit 2d88ee85cd
13 changed files with 367 additions and 174 deletions

View file

@ -16,14 +16,15 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
***/
#ifndef STREAM_H
#define STREAM_H
#ifndef STREAM_HPP
#define STREAM_HPP
#include "common/queue.h"
#include "common/sample_format.hpp"
#include "double_buffer.hpp"
#include "message/message.hpp"
#include "message/pcm_chunk.hpp"
#include "resampler.hpp"
#include <deque>
#include <memory>
#ifdef HAS_SOXR
@ -102,9 +103,8 @@ private:
int32_t correctAfterXFrames_;
chronos::msec bufferMs_;
#ifdef HAS_SOXR
soxr_t soxr_;
#endif
std::unique_ptr<Resampler> resampler_;
std::vector<char> resample_buffer_;
std::vector<char> read_buffer_;
int frame_delta_;