NAME

App::Pimpd::Commands - Package exporting usual commands

SYNOPSIS

use App::Pimpd;
use App::Pimpd::Commands;

if( ... ) {
  next_track();
}
else {
  previous_track();
}

DESCRIPTION

App::Pimpd::Commands exports functions dealing with usual commands

EXPORTS

next_track()

Play the next track in the current playlist.

previous_track()

Play the previous track in the current playlist.

clear_playlist()

Clear the current playlist.

crop()

Remove all tracks but the currently playing in the current playlist.

crossfade()

Parameters: $seconds

Enable crossfading and set the duration of crossfade between songs. If seconds is omitted, or if seconds is zero, crossfading is disabled.

toggle_random()

Toggle random mode on/off

toggle_repeat()

Toggle repeat mode on/off

toggle_pause()

Toggle playback status

random()

Parameters: $integer

Set/unset random mode. Non-zero sets random mode on, zero sets random mode off.

repeat()

Set/unset repeat mode. Non-zero sets repeat mode on, zero sets repeat mode off.

pause()

Set playback status. Non-zero resumes playback, zero pauses. Called with zero arguments, functions just like toggle_pause().

SEE ALSO

App::Pimpd

AUTHOR

Magnus Woldrich
CPAN ID: WOLDRICH
m@japh.se
http://japh.se

COPYRIGHT

Copyright (C) 2010, 2011 Magnus Woldrich. All right reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.