POE::Wheel::Audio::Mad 0.3
Sponsored Links
POE::Wheel::Audio::Mad 0.3 Ranking & Summary
File size:
0.022 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
1074
Date added:
2006-11-16
Publisher:
Mark McConnell
POE::Wheel::Audio::Mad 0.3 description
POE::Wheel::Audio::Mad is a POE Wheel implementing in-session non-blocking mpeg stream playing.
SYNOPSIS
use POE;
use POE::Wheel::Audio::Mad;
POE::Session->create(
inline_states => {
_start => &am_start,
message => &am_message
}
);
sub am_start {
my ($kernel, $heap) = @_[KERNEL, HEAP];
## you may also specify decoder options, listed below..
$heap->{wheel} = new POE::Wheel::Audio::Mad ( message_event => message );
$kernel->yield( decoder_open, {
filename => /path/to/some/stream.mp3,
play => 1
});
}
sub am_message {
my ($kernel, $message) = @_[KERNEL, ARG0];
if ($message->{id} eq INPUT_EOF_WARNING) {
print "finished..n";
undef $heap->{wheel};
} elsif ($message->{id} eq DECODER_FRAME_DATA) {
if (defined($message->{data}->{played})) {
print "rplayed: $message->{data}->{played}";
}
}
}
$poe_kernel->run();
exit();
POE::Wheel::Audio::Mad is an attempt to bring a naitive perl mpeg decoder into a perl session. This module was written to work as a POE Wheel due to its nature -- it simply playes mpeg streams -- you have to do the job of controlling the player and handling updates. This really isnt your traditional wheel.
SYNOPSIS
use POE;
use POE::Wheel::Audio::Mad;
POE::Session->create(
inline_states => {
_start => &am_start,
message => &am_message
}
);
sub am_start {
my ($kernel, $heap) = @_[KERNEL, HEAP];
## you may also specify decoder options, listed below..
$heap->{wheel} = new POE::Wheel::Audio::Mad ( message_event => message );
$kernel->yield( decoder_open, {
filename => /path/to/some/stream.mp3,
play => 1
});
}
sub am_message {
my ($kernel, $message) = @_[KERNEL, ARG0];
if ($message->{id} eq INPUT_EOF_WARNING) {
print "finished..n";
undef $heap->{wheel};
} elsif ($message->{id} eq DECODER_FRAME_DATA) {
if (defined($message->{data}->{played})) {
print "rplayed: $message->{data}->{played}";
}
}
}
$poe_kernel->run();
exit();
POE::Wheel::Audio::Mad is an attempt to bring a naitive perl mpeg decoder into a perl session. This module was written to work as a POE Wheel due to its nature -- it simply playes mpeg streams -- you have to do the job of controlling the player and handling updates. This really isnt your traditional wheel.
POE::Wheel::Audio::Mad 0.3 Screenshot
POE::Wheel::Audio::Mad 0.3 Keywords
POE
Mad 0.3
POE Wheel
mpeg stream
wheel
mpeg
message
stream
decoder
playing
POE::Wheel::Audio::Mad
POEWheelAudioMad
POE::Wheel::Audio::Mad 0.3
Libraries
Programming
Bookmark POE::Wheel::Audio::Mad 0.3
POE::Wheel::Audio::Mad 0.3 Copyright
WareSeeker periodically updates pricing and software information of POE::Wheel::Audio::Mad 0.3 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 POE::Wheel::Audio::Mad 0.3 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::Mad is a Perl interface to the mad MPEG decoder library. Free Download
POE::Component::Audio::Mad::Handle is a POE Component to facilitate IPC with the POE::Wheel::Audio::Mad mpeg decoder. Free Download
POE::Component::Audio::Mad::Dispatch is a POE::Component::Audio::Mad frontend implementing listener based message dispatch. Free Download
Audio::Mad::Util is a utility class for working with mpeg streams. Free Download
Audio::Mad::Stream is a Perl interface to mad_stream structure. Free Download
POE::Kernel is an event driven threaded application kernel in Perl. Free Download
POE::Session::GladeXML2 is a Perl module that can emit POE events for Gtk2 callbacks. Free Download
POE::Loop is a documentation for POEs event loop bridge interface. Free Download
Latest Software
Popular Software
Favourite Software