diff --git a/client/snapClient.cpp b/client/snapClient.cpp index 88c4bd3b..e3b47d40 100644 --- a/client/snapClient.cpp +++ b/client/snapClient.cpp @@ -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);