mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-07 21:31:42 +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,12 +1,12 @@
|
|||
#include "pcmEncoder.h"
|
||||
|
||||
PcmEncoder::PcmEncoder(const SampleFormat& format) : Encoder(format)
|
||||
PcmEncoder::PcmEncoder(const msg::SampleFormat& format) : Encoder(format)
|
||||
{
|
||||
headerChunk = new HeaderMessage("pcm");
|
||||
headerChunk = new msg::Header("pcm");
|
||||
}
|
||||
|
||||
|
||||
double PcmEncoder::encode(PcmChunk* chunk)
|
||||
double PcmEncoder::encode(msg::PcmChunk* chunk)
|
||||
{
|
||||
return chunk->duration<chronos::msec>().count();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue