projects
/
mpd-web.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Косметические подчистки.
[mpd-web.git]
/
model
/
player.php
1
<?php
2
3
switch($task) {
4
5
case("play"):
6
$mpd->Play();
7
break;
8
9
case("prev"):
10
$mpd->Previous();
11
break;
12
13
case("pause"):
14
$mpd->Pause();
15
break;
16
17
case("stop"):
18
$mpd->Stop();
19
break;
20
21
case("next"):
22
$mpd->Next();
23
break;
24
25
case("vold"):
26
$mpd->AdjustVolume(-3);
27
break;
28
case("volu"):
29
$mpd->AdjustVolume(+3);
30
break;
31
32
case("update"):
33
$mpd->DBRefresh();
34
break;
35
36
case("repeat"):
37
$repeat = $mpd->repeat;
38
if($repeat==1)
39
$mpd->SetRepeat(0);
40
else
41
$mpd->SetRepeat(1);
42
break;
43
}
44
?>