mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-11 08:06:41 +02:00
Pass io_context to stream readers
This commit is contained in:
parent
7a58526736
commit
6e138ff49f
15 changed files with 30 additions and 22 deletions
|
@ -30,7 +30,7 @@ using namespace std;
|
|||
|
||||
|
||||
|
||||
FileStream::FileStream(PcmListener* pcmListener, const StreamUri& uri) : PcmStream(pcmListener, uri)
|
||||
FileStream::FileStream(PcmListener* pcmListener, boost::asio::io_context& ioc, const StreamUri& uri) : PcmStream(pcmListener, ioc, uri)
|
||||
{
|
||||
ifs.open(uri_.path.c_str(), std::ifstream::in | std::ifstream::binary);
|
||||
if (!ifs.good())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue