add 'stop' to list of supported mpc commands
This commit is contained in:
@@ -101,6 +101,7 @@ bool ParseArgv(vector<string> &v)
|
||||
<< " play start playing\n"
|
||||
<< " pause pause the currently playing song\n"
|
||||
<< " toggle toggle play/pause mode\n"
|
||||
<< " stop stop playing\n"
|
||||
<< " next play the next song\n"
|
||||
<< " prev play the previous song\n"
|
||||
<< " volume [+-]<num> adjusts volume by [+-]<num>\n"
|
||||
@@ -126,6 +127,11 @@ bool ParseArgv(vector<string> &v)
|
||||
Mpd->Execute("pause\n");
|
||||
exit = 1;
|
||||
}
|
||||
else if (*it == "stop")
|
||||
{
|
||||
Mpd->Stop();
|
||||
exit = 1;
|
||||
}
|
||||
else if (*it == "next")
|
||||
{
|
||||
Mpd->Next();
|
||||
|
||||
Reference in New Issue
Block a user