mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-12 00:26:41 +02:00
28 lines
381 B
C++
28 lines
381 B
C++
#ifndef ENCODER_H
|
|
#define ENCODER_H
|
|
#include "common/pcmChunk.h"
|
|
#include "common/headerMessage.h"
|
|
#include "common/sampleFormat.h"
|
|
|
|
|
|
class Encoder
|
|
{
|
|
public:
|
|
Encoder(const SampleFormat& format) : sampleFormat(format)
|
|
{
|
|
}
|
|
|
|
virtual double encode(PcmChunk* chunk) = 0;
|
|
virtual HeaderMessage* getHeader()
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
protected:
|
|
SampleFormat sampleFormat;
|
|
};
|
|
|
|
|
|
#endif
|
|
|
|
|