git-svn-id: svn://elaine/murooma/trunk@299 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
(no author) 2014-09-27 12:22:30 +00:00
parent d0c07e3b67
commit f54ea7564c

View file

@ -86,15 +86,6 @@ int main (int argc, char *argv[])
return 1;
}
PcmDevice pcmDevice = getPcmDevice(soundcard);
if (pcmDevice.idx != -1)
cout << pcmDevice.idx << ": " << pcmDevice.name << "\n";
else
{
cout << "soundcard \"" << soundcard << "\" not found\n";
return 1;
}
std::clog.rdbuf(new Log("snapclient", LOG_DAEMON));
if (runAsDaemon)
{
@ -102,6 +93,13 @@ int main (int argc, char *argv[])
std::clog << kLogNotice << "daemon started" << std::endl;
}
PcmDevice pcmDevice = getPcmDevice(soundcard);
if (pcmDevice.idx == -1)
{
cout << "soundcard \"" << soundcard << "\" not found\n";
return 1;
}
Controller controller;
controller.start(pcmDevice, ip, port);