Changeset 1730 for trunk/modules/localplay/mpd.controller.php
- Timestamp:
- 08/31/08 08:57:33 (4 months ago)
- Files:
-
- 1 modified
-
trunk/modules/localplay/mpd.controller.php (modified) (14 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/localplay/mpd.controller.php
r1728 r1730 314 314 * This deletes the entire MPD playlist... nuff said 315 315 */ 316 function clear_playlist() {316 public function clear_playlist() { 317 317 318 318 if (is_null($this->_mpd->PLClear())) { return false; } … … 327 327 * take any arguments 328 328 */ 329 function play() {329 public function play() { 330 330 331 331 if (is_null($this->_mpd->Play())) { return false; } … … 339 339 * any arguments 340 340 */ 341 function stop() {341 public function stop() { 342 342 343 343 if (is_null($this->_mpd->Stop())) { return false; } … … 350 350 * This tells MPD to skip to the specified song 351 351 */ 352 function skip($song) {352 public function skip($song) { 353 353 354 354 if (is_null($this->_mpd->SkipTo($song))) { return false; } … … 360 360 * This tells MPD to increase the volume by 5 361 361 */ 362 function volume_up() {362 public function volume_up() { 363 363 364 364 if (is_null($this->_mpd->AdjustVolume('5'))) { return false; } … … 370 370 * This tells MPD to decrese the volume by 5 371 371 */ 372 function volume_down() {372 public function volume_down() { 373 373 374 374 if (is_null($this->_mpd->AdjustVolume('-5'))) { return false; } … … 381 381 * This just tells MPD to skip to the next song 382 382 */ 383 function next() {383 public function next() { 384 384 385 385 if (is_null($this->_mpd->Next())) { return false; } … … 392 392 * This just tells MPD to skip to the prev song 393 393 */ 394 function prev() {394 public function prev() { 395 395 396 396 if (is_null($this->_mpd->Previous())) { return false; } … … 403 403 * This tells MPD to pause the current song 404 404 */ 405 function pause() {405 public function pause() { 406 406 407 407 if (is_null($this->_mpd->Pause())) { return false; } … … 415 415 * This tells MPD to set the volume to the parameter 416 416 */ 417 function volume($volume) {417 public function volume($volume) { 418 418 419 419 if (is_null($this->_mpd->SetVolume($volume))) { return false; } … … 426 426 * This tells MPD to set the repeating the playlist (i.e. loop) to either on or off 427 427 */ 428 function repeat($state) {428 public function repeat($state) { 429 429 430 430 if (is_null($this->_mpd->SetRepeat($state))) { return false; } … … 432 432 433 433 } // repeat 434 435 434 436 435 /** … … 438 437 * This tells MPD to turn on or off the playing of songs from the playlist in random order 439 438 */ 440 function random($onoff) {439 public function random($onoff) { 441 440 442 441 if (is_null($this->_mpd->SetRandom($onoff))) { return false; } … … 449 448 * This tells MPD to move song from SrcPos to DestPos 450 449 */ 451 function move($SrcPos, $DestPos) {450 public function move($SrcPos, $DestPos) { 452 451 453 452 if (is_null($this->_mpd->PLMoveTrack($SrcPos, $DestPos))) { return false; }
