mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-20 20:46:16 +02:00
Add experimental TCP and UDP streams
This commit is contained in:
parent
6e138ff49f
commit
646c7593c1
9 changed files with 365 additions and 7 deletions
|
@ -2,17 +2,18 @@
|
|||
#define PCM_READER_FACTORY_H
|
||||
|
||||
#include "pcm_stream.hpp"
|
||||
#include <boost/asio/io_context.hpp>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <boost/asio/io_context.hpp>
|
||||
|
||||
typedef std::shared_ptr<PcmStream> PcmStreamPtr;
|
||||
|
||||
class StreamManager
|
||||
{
|
||||
public:
|
||||
StreamManager(PcmListener* pcmListener, boost::asio::io_context& ioc, const std::string& defaultSampleFormat, const std::string& defaultCodec, size_t defaultReadBufferMs = 20);
|
||||
StreamManager(PcmListener* pcmListener, boost::asio::io_context& ioc, const std::string& defaultSampleFormat, const std::string& defaultCodec,
|
||||
size_t defaultReadBufferMs = 20);
|
||||
|
||||
PcmStreamPtr addStream(const std::string& uri);
|
||||
void removeStream(const std::string& name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue