mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-11 16:16:42 +02:00
pcmEncoder
git-svn-id: svn://elaine/murooma/trunk@214 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
parent
65d8edf434
commit
9ceb6b3533
4 changed files with 39 additions and 2 deletions
|
@ -26,6 +26,7 @@
|
|||
#include "common/signalHandler.h"
|
||||
#include "common/utils.h"
|
||||
#include "common/sampleFormat.h"
|
||||
#include "pcmEncoder.h"
|
||||
#include <syslog.h>
|
||||
|
||||
|
||||
|
@ -260,7 +261,8 @@ int main(int argc, char* argv[])
|
|||
|
||||
mkfifo(fifoName.c_str(), 0777);
|
||||
size_t duration = 50;
|
||||
|
||||
|
||||
PcmEncoder pcmEncoder;
|
||||
SampleFormat format(sampleFormat);
|
||||
while (!g_terminated)
|
||||
{
|
||||
|
@ -288,6 +290,7 @@ size_t duration = 50;
|
|||
|
||||
wireChunk->tv_sec = tvChunk.tv_sec;
|
||||
wireChunk->tv_usec = tvChunk.tv_usec;
|
||||
pcmEncoder.encode(chunk.get());
|
||||
server->send(chunk);
|
||||
|
||||
addMs(tvChunk, duration);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue