|
|
|
@ -101,6 +101,7 @@ bool ParseArgv(vector<string> &v) |
|
|
|
<< " play start playing\n" |
|
|
|
<< " play start playing\n" |
|
|
|
<< " pause pause the currently playing song\n" |
|
|
|
<< " pause pause the currently playing song\n" |
|
|
|
<< " toggle toggle play/pause mode\n" |
|
|
|
<< " toggle toggle play/pause mode\n" |
|
|
|
|
|
|
|
<< " stop stop playing\n" |
|
|
|
<< " next play the next song\n" |
|
|
|
<< " next play the next song\n" |
|
|
|
<< " prev play the previous song\n" |
|
|
|
<< " prev play the previous song\n" |
|
|
|
<< " volume [+-]<num> adjusts volume by [+-]<num>\n" |
|
|
|
<< " volume [+-]<num> adjusts volume by [+-]<num>\n" |
|
|
|
@ -126,6 +127,11 @@ bool ParseArgv(vector<string> &v) |
|
|
|
Mpd->Execute("pause\n"); |
|
|
|
Mpd->Execute("pause\n"); |
|
|
|
exit = 1; |
|
|
|
exit = 1; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
else if (*it == "stop") |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
Mpd->Stop(); |
|
|
|
|
|
|
|
exit = 1; |
|
|
|
|
|
|
|
} |
|
|
|
else if (*it == "next") |
|
|
|
else if (*it == "next") |
|
|
|
{ |
|
|
|
{ |
|
|
|
Mpd->Next(); |
|
|
|
Mpd->Next(); |
|
|
|
|