mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-10 23:56:43 +02:00
delay
git-svn-id: svn://elaine/murooma/trunk@102 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
parent
2ab66e9b62
commit
88cbbec472
2 changed files with 20 additions and 1 deletions
19
client.cpp
19
client.cpp
|
@ -153,6 +153,25 @@ int main (int argc, char *argv[])
|
|||
stream->setBufferLen(bufferMs);
|
||||
initAudio();
|
||||
std::thread playerThread(player);
|
||||
|
||||
std::string cmd;
|
||||
while (true)
|
||||
{
|
||||
std::cout << "> ";
|
||||
std::getline(std::cin, cmd);
|
||||
// line = fgets( str, 256, stdin );
|
||||
// if (line == NULL)
|
||||
// continue;
|
||||
// std::string cmd(line);
|
||||
std::cerr << "CMD: " << cmd << "\n";
|
||||
if (cmd == "quit")
|
||||
break;
|
||||
else
|
||||
{
|
||||
stream->setBufferLen(atoi(cmd.c_str()));
|
||||
}
|
||||
}
|
||||
|
||||
playerThread.join();
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue