mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-23 11:27:38 +02:00
refactoring
git-svn-id: svn://elaine/murooma/trunk@328 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
parent
611b2a6c9f
commit
c40bfda64c
35 changed files with 192 additions and 178 deletions
|
@ -1,14 +1,14 @@
|
|||
#ifndef ENCODER_H
|
||||
#define ENCODER_H
|
||||
#include "message/pcmChunk.h"
|
||||
#include "message/headerMessage.h"
|
||||
#include "message/header.h"
|
||||
#include "message/sampleFormat.h"
|
||||
|
||||
|
||||
class Encoder
|
||||
{
|
||||
public:
|
||||
Encoder(const SampleFormat& format) : sampleFormat(format), headerChunk(NULL)
|
||||
Encoder(const msg::SampleFormat& format) : sampleFormat(format), headerChunk(NULL)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -18,16 +18,16 @@ public:
|
|||
delete headerChunk;
|
||||
}
|
||||
|
||||
virtual double encode(PcmChunk* chunk) = 0;
|
||||
virtual double encode(msg::PcmChunk* chunk) = 0;
|
||||
|
||||
virtual HeaderMessage* getHeader()
|
||||
virtual msg::Header* getHeader()
|
||||
{
|
||||
return headerChunk;
|
||||
}
|
||||
|
||||
protected:
|
||||
SampleFormat sampleFormat;
|
||||
HeaderMessage* headerChunk;
|
||||
msg::SampleFormat sampleFormat;
|
||||
msg::Header* headerChunk;
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue