mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-05 04:11:50 +02:00
WIP opus is working, some values are hard coded
This commit is contained in:
parent
8d47371115
commit
258bab4f65
6 changed files with 95 additions and 84 deletions
|
@ -22,14 +22,15 @@
|
|||
#include <opus/opus.h>
|
||||
|
||||
|
||||
class OpusDecoderWrapper : public Decoder
|
||||
class OpusDecoder : public Decoder
|
||||
{
|
||||
public:
|
||||
OpusDecoderWrapper();
|
||||
~OpusDecoderWrapper();
|
||||
OpusDecoder();
|
||||
~OpusDecoder();
|
||||
bool decode(msg::PcmChunk* chunk) override;
|
||||
SampleFormat setHeader(msg::CodecHeader* chunk) override;
|
||||
|
||||
private:
|
||||
OpusDecoder* dec;
|
||||
OpusDecoder* dec_;
|
||||
std::vector<opus_int16> pcm_;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue