refactoring

git-svn-id: svn://elaine/murooma/trunk@328 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
(no author) 2014-12-29 12:34:33 +00:00
parent 611b2a6c9f
commit c40bfda64c
35 changed files with 192 additions and 178 deletions

View file

@ -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;
};