snapcast/server/encoder.h
(no author) feabfee936 xxxx
git-svn-id: svn://elaine/murooma/trunk@272 d8a302eb-03bc-478d-80e4-98257eca68ef
2014-09-17 21:58:38 +00:00

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