mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-11 16:16:42 +02:00
io_context cleanups
This commit is contained in:
parent
945e19a4eb
commit
bdc6299523
11 changed files with 18 additions and 26 deletions
|
@ -46,7 +46,7 @@ static constexpr auto LOG_TAG = "PcmStream";
|
|||
|
||||
PcmStream::PcmStream(PcmStream::Listener* pcmListener, boost::asio::io_context& ioc, const ServerSettings& server_settings, const StreamUri& uri)
|
||||
: active_(false), strand_(boost::asio::make_strand(ioc.get_executor())), pcmListeners_{pcmListener}, uri_(uri), chunk_ms_(20), state_(ReaderState::kIdle),
|
||||
ioc_(ioc), server_settings_(server_settings), req_id_(0), property_timer_(strand_)
|
||||
server_settings_(server_settings), req_id_(0), property_timer_(strand_)
|
||||
{
|
||||
encoder::EncoderFactory encoderFactory;
|
||||
if (uri_.query.find(kUriCodec) == uri_.query.end())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue