Audio::RaveMPAudio::RaveMP is a Perl interface to Sensory Science RaveMP player. | |
Download |
Audio::RaveMP Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Doug MacEachern
- Publisher web site:
- http://search.cpan.org/~gozer/mod_perl-1.30/lib/Apache/Status.pm
Audio::RaveMP Tags
Audio::RaveMP Description
Audio::RaveMP is a Perl interface to Sensory Science RaveMP player. Audio::RaveMP is a Perl interface to Sensory Science RaveMP player.SYNOPSIS use Audio::RaveMP ();The Audio::RaveMP module provides a Perl interface to the Sensory Science RaveMP player.METHODSnew my $rmp = Audio::RaveMP->new;permittedCheck parallel port permissions (must be root at the moment): unless ($rmp->permitted) { print "$!n"; exit 1; }is_readyCheck that RaveMP is connected and powered up: unless ($rmp->is_ready) { print "Device is not ready (not connected or powered up?)n"; exit 2; }show_statusShow status messages: $rmp->show_status(1); $rmp->show_status(0);uploadUpload a file. The second argument is the name to upload to, which is optional and defaults to the upload name: unless ($rmp->upload("we_eat_rhythm.mp3")) { print "upload failedn"; } unless ($rmp->upload("we_eat_rhythm.mp3", "We Eat Rhythm")) { print "upload failedn"; }removeRemove a file specified by the give slot number: unless ($rmp->remove(8)) { print "unable to remove file at slot 8n"; }downloadDownload the file specified by the give slot number. The last argument is the name of the destination file, which is optional and defaults to the name of the downloaded file: unless ($rmp->download("we_eat_rhythm.mp3")) { print "download failedn"; } unless ($rmp->download("We Eat Rhythm", "we_eat_rhythm.mp3")) { print "download failedn"; }contentsReturn an array reference of file contents in the player. Each element is an object blessed into the Audio::RaveMPSlot class: my $contents = $rmp->contents; for my $slot (@$contents) { printf "%d, %s -> %sn", $slot->number, $slot->type, $slot->filename; } Requirements: · Perl
Audio::RaveMP Related Software