From 94991b185cc8e0048194e77749593c0388636444 Mon Sep 17 00:00:00 2001 From: xgizzmo Date: Wed, 16 Aug 2006 11:36:58 +0000 Subject: fixed pause function in localplay (thanks Salguod) bug #923 --- lib/class/localplay.class.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'lib') 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 -- cgit