mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-26 12:58:47 +02:00
16 lines
250 B
C++
16 lines
250 B
C++
#include "pcmEncoder.h"
|
|
|
|
PcmEncoder::PcmEncoder(const msg::SampleFormat& format) : Encoder(format)
|
|
{
|
|
headerChunk = new msg::Header("pcm");
|
|
}
|
|
|
|
|
|
double PcmEncoder::encode(msg::PcmChunk* chunk)
|
|
{
|
|
return chunk->duration<chronos::msec>().count();
|
|
}
|
|
|
|
|
|
|
|
|