diff options
Diffstat (limited to 'lib/class/localplay.class.php')
-rw-r--r-- | lib/class/localplay.class.php | 18 |
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 |