summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorxgizzmo <xgizzmo@ampache>2006-08-16 11:36:58 +0000
committerxgizzmo <xgizzmo@ampache>2006-08-16 11:36:58 +0000
commit94991b185cc8e0048194e77749593c0388636444 (patch)
tree25461285f047dd41b9bdceb00bd204926dd0bf45 /lib
parent0cf99f9a6c1a797017c146d8a7f19da934c153c4 (diff)
downloadampache-94991b185cc8e0048194e77749593c0388636444.tar.gz
ampache-94991b185cc8e0048194e77749593c0388636444.tar.bz2
ampache-94991b185cc8e0048194e77749593c0388636444.zip
fixed pause function in localplay (thanks Salguod) bug #923
Diffstat (limited to 'lib')
-rw-r--r--lib/class/localplay.class.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/class/localplay.class.php b/lib/class/localplay.class.php
index b6cacfd5..0b401bdc 100644
--- a/lib/class/localplay.class.php
+++ b/lib/class/localplay.class.php
@@ -412,6 +412,24 @@ class Localplay {
} // prev
+ /**
+ * pause
+ * This isn't a required function, it tells the daemon to pause the
+ * song
+ */
+ function pause() {
+
+ $function = $this->_function_map['pause'];
+
+ if (!$this->_player->$function()) {
+ debug_event('localplay','Error: Unable to pause song, check ' . $this->type . ' controller','1');
+ return false;
+ }
+
+ return true;
+
+ } // pause
+
/**
* get_preferences
* This functions returns an array of the preferences that the localplay