mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-31 18:06:15 +02:00
start stream
git-svn-id: svn://elaine/murooma/trunk@282 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
parent
ebfcbf5c26
commit
001bfa6aba
8 changed files with 75 additions and 6 deletions
|
@ -43,6 +43,11 @@ public:
|
|||
return active_;
|
||||
}
|
||||
|
||||
virtual void setStreamActive(bool active)
|
||||
{
|
||||
streamActive = active;
|
||||
}
|
||||
|
||||
|
||||
protected:
|
||||
void socketRead(void* _to, size_t _bytes);
|
||||
|
@ -51,6 +56,7 @@ protected:
|
|||
void writer();
|
||||
|
||||
std::atomic<bool> active_;
|
||||
std::atomic<bool> streamActive;
|
||||
mutable std::mutex mutex_;
|
||||
std::thread* readerThread;
|
||||
std::thread* writerThread;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue