Audio::Daemon::MPG321 0.002
Sponsored Links
Audio::Daemon::MPG321 0.002 Ranking & Summary
File size:
0.004 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
1027
Date added:
2007-01-02
Publisher:
Da-Breegster
Audio::Daemon::MPG321 0.002 description
Audio::Daemon::MPG321 is a song queue daemon for Audio::Play::MPG321.
SYNOPSIS
use Audio::Daemon::MPG321; my $player = new Audio::Daemon::MPG321 ("/home/dabreegster/foo.mp3", "/home/dabreegster/bar.mp3");
$SIG{CHLD} = IGNORE; $player->add("/home/dabreegster/blah.mp3");
while (1) { until ($player->{player}->state() == 0) { $player->{player}->poll(); select(undef, undef, undef, 1.0); } $player->{pointer}++; unless ($player->{queue}->[$player->{pointer}]) { exit 0; } else { $player->load(); } }
This daemonizes Audio::Play::MPG321, or at least gives it the ability to manage a song queue. You can build a simple queue of songs and move between them.
Note the infinite loop in the synopsis. You must put this in your program or the queue wont work!
All it does is keep Audio::Play::MPG321s knowledge of the state of the player fresh and continously tests to see if one song is over so the next can be loaded. The code is kept out of the module itself because this process must be done, one way or the other, and forking in the module itself is very messy.
The example loop will work fine and you may modify it any way you like to incoorporate it into your frontend, as long as you poll the player, test to see if the song is finished yet, and load the next song in the queue (If there is one!) when it is time to do so.
SYNOPSIS
use Audio::Daemon::MPG321; my $player = new Audio::Daemon::MPG321 ("/home/dabreegster/foo.mp3", "/home/dabreegster/bar.mp3");
$SIG{CHLD} = IGNORE; $player->add("/home/dabreegster/blah.mp3");
while (1) { until ($player->{player}->state() == 0) { $player->{player}->poll(); select(undef, undef, undef, 1.0); } $player->{pointer}++; unless ($player->{queue}->[$player->{pointer}]) { exit 0; } else { $player->load(); } }
This daemonizes Audio::Play::MPG321, or at least gives it the ability to manage a song queue. You can build a simple queue of songs and move between them.
Note the infinite loop in the synopsis. You must put this in your program or the queue wont work!
All it does is keep Audio::Play::MPG321s knowledge of the state of the player fresh and continously tests to see if one song is over so the next can be loaded. The code is kept out of the module itself because this process must be done, one way or the other, and forking in the module itself is very messy.
The example loop will work fine and you may modify it any way you like to incoorporate it into your frontend, as long as you poll the player, test to see if the song is finished yet, and load the next song in the queue (If there is one!) when it is time to do so.
Audio::Daemon::MPG321 0.002 Screenshot
Advertisements
Audio::Daemon::MPG321 0.002 Keywords
MPG321
MPG321 0.002
queue
song
player
daemon
0.002
Audio::Daemon::MPG321
AudioDaemonMPG321
Audio::Daemon::MPG321 0.002
Libraries
Programming
Bookmark Audio::Daemon::MPG321 0.002
Audio::Daemon::MPG321 0.002 Copyright
WareSeeker periodically updates pricing and software information of Audio::Daemon::MPG321 0.002 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Audio::Daemon::MPG321 0.002 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
Related Software
Audio Daemon is a perl module to daemonize various players and support a single UDP interace for different players. Free Download
Audio::Play::MPG321 is a frontend to MPG321. Free Download
Music daemon(musicd) is a music playing server that supports multiple formats through plugins and multiple playlists. Free Download
Audio::Daemon::MPG123::Client is a client portion of Audio::Daemon::MPG123. Free Download
Audio::ESD is a Perl extension for talking to the Enlightened Sound Daemon. Free Download
Methane IRC Daemon is an advanced ircd based on Bahamut 1.4.35. Free Download
Audio::MPD is a class for talking to MPD (Music Player Daemon) servers. Free Download
mpg321 is a fully free clone of mpg123, a command-line mp3 player. Free Download
Latest Software
Popular Software
Favourite Software