mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-14 09:36:41 +02:00
Opus encoder resamples to 48000:16:2
This commit is contained in:
parent
199c30b69d
commit
2d88ee85cd
13 changed files with 367 additions and 174 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue