git-svn-id: svn://elaine/murooma/trunk@215 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
(no author) 2014-08-28 07:16:38 +00:00
parent 9ceb6b3533
commit 77826ef57a
3 changed files with 5 additions and 5 deletions

View file

@ -3,7 +3,7 @@ CC = /usr/bin/g++
CFLAGS = -std=gnu++0x -Wall -Wno-unused-function -D_REENTRANT -DVERSION=\"$(VERSION)\" -I..
LDFLAGS = -lrt -lpthread -lportaudio -lboost_system -lboost_program_options
OBJ = snapServer.o pcmEncoder.o ../common/chunk.o ../common/sampleFormat.o
OBJ = snapServer.o pcmEncoder.o oggEncoder.o ../common/chunk.o ../common/sampleFormat.o
BIN = snapserver
all: server

View file

@ -7,10 +7,10 @@ PcmEncoder::PcmEncoder()
void PcmEncoder::encode(Chunk* chunk)
{
WireChunk* wireChunk = chunk->wireChunk;
/* WireChunk* wireChunk = chunk->wireChunk;
for (size_t n=0; n<wireChunk->length; ++n)
wireChunk->payload[n] *= 1.5;
// return chunk;
*/
}

View file

@ -1,13 +1,13 @@
#ifndef PCM_ENCODER_H
#define PCM_ENCODER_H
#include "common/chunk.h"
#include "encoder.h"
class PcmEncoder
{
public:
PcmEncoder();
void encode(Chunk* chunk);
virtual void encode(Chunk* chunk);
};