summaryrefslogtreecommitdiffstats
path: root/modules/localplay
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-06-06 02:50:03 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-06-06 02:50:03 +0000
commit6c570d4e5a66ca2d49295f6352c71cee6ae32097 (patch)
treee17a820a40a3251c818635e6fa00f316c275edd8 /modules/localplay
parent56acdc4b64567461ca153f617e3ec86938369516 (diff)
downloadampache-6c570d4e5a66ca2d49295f6352c71cee6ae32097.tar.gz
ampache-6c570d4e5a66ca2d49295f6352c71cee6ae32097.tar.bz2
ampache-6c570d4e5a66ca2d49295f6352c71cee6ae32097.zip
added volume controls, missing mute icon
Diffstat (limited to 'modules/localplay')
-rw-r--r--modules/localplay/mpd.controller.php23
1 files changed, 22 insertions, 1 deletions
diff --git a/modules/localplay/mpd.controller.php b/modules/localplay/mpd.controller.php
index 81bf3adf..189e9b74 100644
--- a/modules/localplay/mpd.controller.php
+++ b/modules/localplay/mpd.controller.php
@@ -70,7 +70,8 @@ class AmpacheMpd {
$map['next'] = 'next';
$map['prev'] = 'prev';
$map['pause'] = 'pause';
- $map['volume'] = 'volume';
+ $map['volume_up'] = 'volume_up';
+ $map['volume_down'] = 'volume_down';
$map['loop'] = 'loop';
$map['random'] = 'random';
@@ -199,6 +200,26 @@ class AmpacheMpd {
} // skip
/**
+ * This tells MPD to increase the volume by 5
+ */
+ function volume_up() {
+
+ if (is_null($this->_mpd->AdjustVolume('5'))) { return false; }
+ return true;
+
+ } // volume_up
+
+ /**
+ * This tells MPD to decrese the volume by 5
+ */
+ function volume_down() {
+
+ if (is_null($this->_mpd->AdjustVolume('-5'))) { return false; }
+ return true;
+
+ } // volume_down
+
+ /**
* next
* This just tells MPD to skip to the next song
*/