Switch stream readers to use asio event loop

This commit is contained in:
badaix 2020-01-03 22:40:34 +01:00
parent 3eab397543
commit 6d7e25e9af
30 changed files with 630 additions and 583 deletions

View file

@ -1,5 +1,23 @@
#ifndef PCM_READER_FACTORY_H
#define PCM_READER_FACTORY_H
/***
This file is part of snapcast
Copyright (C) 2014-2020 Johannes Pohl
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
***/
#ifndef STREAM_MANAGER_HPP
#define STREAM_MANAGER_HPP
#include "pcm_stream.hpp"
#include <boost/asio/io_context.hpp>
@ -7,6 +25,9 @@
#include <string>
#include <vector>
namespace streamreader
{
typedef std::shared_ptr<PcmStream> PcmStreamPtr;
class StreamManager
@ -33,5 +54,6 @@ private:
boost::asio::io_context& ioc_;
};
} // namespace streamreader
#endif