mirror of
https://github.com/badaix/snapcast.git
synced 2025-08-03 08:39:49 +02:00
server Settings
git-svn-id: svn://elaine/murooma/trunk@255 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
parent
f7cf7a2537
commit
979f6460d3
11 changed files with 122 additions and 48 deletions
|
@ -5,6 +5,7 @@
|
|||
#include <atomic>
|
||||
#include "common/message.h"
|
||||
#include "common/socketConnection.h"
|
||||
#include "streamClient.h"
|
||||
#include "decoder.h"
|
||||
#include "stream.h"
|
||||
|
||||
|
@ -13,7 +14,7 @@ class Controller : public MessageReceiver
|
|||
{
|
||||
public:
|
||||
Controller();
|
||||
void start(std::string& _ip, size_t _port, int _bufferMs);
|
||||
void start(const std::string& _ip, size_t _port, int _bufferMs);
|
||||
void stop();
|
||||
virtual void onMessageReceived(SocketConnection* connection, const BaseMessage& baseMessage, char* buffer);
|
||||
|
||||
|
@ -21,12 +22,13 @@ private:
|
|||
void worker();
|
||||
std::atomic<bool> active_;
|
||||
std::thread* controllerThread;
|
||||
ClientConnection* connection;
|
||||
StreamClient* streamClient;
|
||||
ClientConnection* controlConnection;
|
||||
SampleFormat* sampleFormat;
|
||||
Decoder* decoder;
|
||||
Stream* stream;
|
||||
int bufferMs;
|
||||
std::string ip;
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue