mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-24 11:57:37 +02:00
switched to standalone asio
This commit is contained in:
parent
75179cc936
commit
5cc7285a87
14 changed files with 42 additions and 42 deletions
|
@ -127,11 +127,11 @@ int main(int argc, char* argv[])
|
|||
settings.bufferMs = 400;
|
||||
settings.sampleFormat = sampleFormat;
|
||||
|
||||
boost::asio::io_service io_service;
|
||||
asio::io_service io_service;
|
||||
std::unique_ptr<StreamServer> streamServer(new StreamServer(&io_service, settings));
|
||||
streamServer->start();
|
||||
|
||||
auto func = [](boost::asio::io_service* ioservice)->void{ioservice->run();};
|
||||
auto func = [](asio::io_service* ioservice)->void{ioservice->run();};
|
||||
std::thread t(func, &io_service);
|
||||
|
||||
while (!g_terminated)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue