mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-15 18:16:44 +02:00
16 lines
242 B
C++
16 lines
242 B
C++
#include "pcmEncoder.h"
|
|
|
|
PcmEncoder::PcmEncoder(const SampleFormat& format) : Encoder(format)
|
|
{
|
|
headerChunk = new HeaderMessage("pcm");
|
|
}
|
|
|
|
|
|
double PcmEncoder::encode(PcmChunk* chunk)
|
|
{
|
|
return chunk->duration<chronos::msec>().count();
|
|
}
|
|
|
|
|
|
|
|
|