mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-29 08:56:18 +02:00
123
git-svn-id: svn://elaine/murooma/trunk@299 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
parent
d0c07e3b67
commit
f54ea7564c
1 changed files with 7 additions and 9 deletions
|
@ -86,15 +86,6 @@ int main (int argc, char *argv[])
|
||||||
return 1;
|
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));
|
std::clog.rdbuf(new Log("snapclient", LOG_DAEMON));
|
||||||
if (runAsDaemon)
|
if (runAsDaemon)
|
||||||
{
|
{
|
||||||
|
@ -102,6 +93,13 @@ int main (int argc, char *argv[])
|
||||||
std::clog << kLogNotice << "daemon started" << std::endl;
|
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 controller;
|
||||||
controller.start(pcmDevice, ip, port);
|
controller.start(pcmDevice, ip, port);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue