mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-05 04:11:50 +02:00
pcmDevice and chronos in stream
git-svn-id: svn://elaine/murooma/trunk@298 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
parent
fe79a78efe
commit
d0c07e3b67
13 changed files with 239 additions and 118 deletions
|
@ -7,13 +7,14 @@
|
|||
#include "clientConnection.h"
|
||||
#include "decoder.h"
|
||||
#include "stream.h"
|
||||
#include "pcmDevice.h"
|
||||
|
||||
|
||||
class Controller : public MessageReceiver
|
||||
{
|
||||
public:
|
||||
Controller();
|
||||
void start(const std::string& _ip, size_t _port);
|
||||
void start(const PcmDevice& pcmDevice, const std::string& _ip, size_t _port);
|
||||
void stop();
|
||||
virtual void onMessageReceived(ClientConnection* connection, const BaseMessage& baseMessage, char* buffer);
|
||||
virtual void onException(ClientConnection* connection, const std::exception& exception);
|
||||
|
@ -27,6 +28,7 @@ private:
|
|||
std::string ip;
|
||||
std::shared_ptr<SampleFormat> sampleFormat;
|
||||
Decoder* decoder;
|
||||
PcmDevice pcmDevice_;
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue