mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-21 18:38:07 +02:00
decoder gets sample format from header
This commit is contained in:
parent
1d1ef239b2
commit
eed7f287fb
10 changed files with 216 additions and 114 deletions
|
@ -20,6 +20,8 @@
|
|||
#define DECODER_H
|
||||
#include "message/pcmChunk.h"
|
||||
#include "message/header.h"
|
||||
#include "message/sampleFormat.h"
|
||||
|
||||
|
||||
class Decoder
|
||||
{
|
||||
|
@ -27,7 +29,7 @@ public:
|
|||
Decoder() {};
|
||||
virtual ~Decoder() {};
|
||||
virtual bool decode(msg::PcmChunk* chunk) = 0;
|
||||
virtual bool setHeader(msg::Header* chunk) = 0;
|
||||
virtual msg::SampleFormat setHeader(msg::Header* chunk) = 0;
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue