From 9ca0523f28fcb5cf4814f223a48625a29e66ca68 Mon Sep 17 00:00:00 2001 From: jq Date: Wed, 7 Mar 2007 17:36:23 +0000 Subject: [PATCH] [project @ 5570] more comments --- lib/Audio/MPD.pm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lib/Audio/MPD.pm b/lib/Audio/MPD.pm index 89d15dc..a5ee366 100644 --- a/lib/Audio/MPD.pm +++ b/lib/Audio/MPD.pm @@ -303,6 +303,13 @@ sub repeat { $self->_send_command("repeat $mode\n"); } + +# +# $mpd->random( [$random] ); +# +# Set the random mode to $random (1 or 0). If $random is not specified then +# the random mode is toggled. +# sub random { my ($self, $mode) = @_; @@ -311,6 +318,13 @@ sub random { $self->_send_command("random $mode\n"); } + +# +# $mpd->fade( [$seconds] ); +# +# Enable crossfading and set the duration of crossfade between songs. If +# $seconds is not specified or $seconds is 0, then crossfading is disabled. +# sub fade { my ($self, $value) = @_; $value ||= 0; -- 2.11.4.GIT