This commit is contained in:
badaix 2015-08-15 15:43:22 +02:00
parent 239e93de43
commit 94e6511e56
3 changed files with 9 additions and 9 deletions

View file

@ -155,13 +155,13 @@ int main (int argc, char *argv[])
}
}
Controller controller;
std::unique_ptr<Controller> controller(new Controller());
if (!g_terminated)
{
controller.start(pcmDevice, ip, port, latency);
controller->start(pcmDevice, ip, port, latency);
while(!g_terminated)
usleep(100*1000);
controller.stop();
controller->stop();
}
}
catch (const std::exception& e)