Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Libraries

    AudioCD::Mac 0.25

    Download button

    No screenshots available
    Downloads: 379  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Chris Nandor | More programs
    Perl Artistic License / FREE
    June 22nd, 2006, 15:22 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    AudioCD::Mac description

    AudioCD::Mac is a MacPerl extension for controlling Audio CDs.

    AudioCD::Mac is a MacPerl extension for controlling Audio CDs.

    SYNOPSIS

    #!perl -w
    use AudioCD;
    use strict;
    my $cd = new AudioCD;

    $cd->volume(255);
    $cd->play(2);
    print "Now playingn" if $cd->status == CD_PLAY;
    printf "Volume is %dn", $cd->volume;
    sleep(5);

    $cd->pause;
    print "Now pausedn" if $cd->status == CD_PAUSE;
    sleep(5);

    $cd->volume(100);
    $cd->continue;
    print "Now playingn" if $cd->status == CD_PLAY;
    printf "Volume is %dn", $cd->volume;
    sleep(5);

    my @info = $cd->info;
    printf "Currently at track %d, %.2d:%.2dn", @info[0..2];

    $cd->stop;
    my $status = $cd->status;
    print "Now stoppedn" if
    ($status == CD_FINISH || $status == CD_STOP);

    if (do 'CDDB.pm') { # sold separately
    my $cddb = new CDDB;
    my @cddb_info = $cddb->calculate_id( $cd->cddb_toc );
    my @discs = $cddb->get_discs(@cddb_info[0, 3, 4]);
    print "You were probably listening to $discs[0]->[2]n";
    }

    $cd->eject;

    This is the MacPerl module to be used by the AudioCD module. Other modules can be written for other platforms, but this one is Mac specific, calling Mac OS APIs to control the CD player.

    Requirements:

    · Perl

    What's New in This Release:

    · Significant clean up of Perl and XS code, lots of misc. changes.
    · Hopefully fixed cd_toc to give all the right values.
    · Fixed eject problems.

    "no pointer is a pointer, too" -- Matthias Neeracher



    Product's homepage

      


    TAGS:

    Perl module | controlling audio cd | MacPerl extension | AudioCD::Mac | audio | cd

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM