mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-31 18:06:15 +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,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_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue