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,8 +16,10 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
***/
#pragma once
#ifndef OPUS_ENCODER_HPP
#define OPUS_ENCODER_HPP
#include "common/resampler.hpp"
#include "encoder.hpp"
#include <opus/opus.h>
@ -43,6 +45,9 @@ protected:
std::vector<unsigned char> encoded_;
std::unique_ptr<msg::PcmChunk> remainder_;
size_t remainder_max_size_;
std::unique_ptr<Resampler> resampler_;
};
} // namespace encoder
#endif