mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-17 02:56:16 +02:00
encoder
git-svn-id: svn://elaine/murooma/trunk@215 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
parent
9ceb6b3533
commit
77826ef57a
3 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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);
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue