POE::Component::Player::Mpg123 1.2 |
Date Added: April 02, 2010 | Visits: 353 |
|
||||||||
|
SYNOPSIS use POE qw(Component::Player::Mpg123); $mp = POE::Component::Player::Mpg123->new(); $mp->play("/tmp/test.mp3"); POE::Kernel->run(); This component is used to manipulate the mpg123 player from within a POE application. The less common but open-source mpg321 has also been tested. METHODS An object oriented interface is provided as follows: new [hash[-ref]] Used to initialise the system and create a module instance. The optional hash (or hash reference) may contain any of the following keys: alias Indicates the name of a session to which events will be posted. Default: main. dev Specifies device to play to. Default: /dev/dsp. xargs Allows for passing extra arguments to the underlying application. < event-name > Any event fired by this module can be mapped to a name of choice. This is useful for differentiating this components events from some other components e.g. done = "mpg123_done"> will cause the component to fire an mpg123_done event at the main session, instead of the usual done. For a comprehensive listing of events fired, please refer to the EVENTS section below. start This method starts the player. While it should not be necessary to ever call this method directly since the new() method calls it automatically, this method allows for restarting the player in such instances as when it dies. play < path > This method requires a single parameter specifying the full path name of an mp3 file to play. stop pause resume None of these methods take any parameters and will do exactly as thier name implies. Please note that pause/resume are semaphored i.e. issuing a pause whilst the system is already paused will do exactly diddley. vol < integer > This method requires a valid integer between 0 and 100 to indicate the volume level. Please note that volume support is not available on all versions of the mpg123 player. Consult your versions documentation to verify whether this will work. seek < to > This method fast-forwards or rewinds or jumps the metaphoric playhead to a specified location. The to argument passed should adhere to the regex [+-]d+[%]. If the number provided is preceeded by a + or a - then the number is treated as a relative offset where positive indicates forwards and negative backwards. If no sign is passed, the number is treated as an absolute offset. Additionally, if the number is followed by a percent sign, it is treated as a percentage and should be between 0 and 100, else it is treated as a frame number. Please note that passing out-of-bounds values will not generate an error but will be silently adjusted as necessary. stat This method has been kept from sungos original package... though I dont know what its supposed to do. In my version of mpg123 it generates an error @E Unknown command STAT. xcmd < string > This method allows for the sending of arbitrary commands to the player e.g. equalize such that as the underlying player offers new features, these can be utilised without having to modify the component. quit This method causes the mp3 player to shut down..
|
| License: Freeware | Size: 7.17 KB |
|
Video Editors
-
XMovie 1.9.13
XMovie was originally written as a simple, fast method to play uncompressed movies with stereo sound back when the only uncompressed movie player was xanim and the only MPEG player was MTV. XAnim didnt play stereo sound and MTV was a $15... |
1.96 MB | |
|
Multimedia
-
Music Player Daemon 0.18
Through plugins and libraries it can play a variety of sound files while being controlled by its network protocol.The application was written in Java, C++, Python, PHP, C and Haskell.Supports:Input Plugins: AudioFile, ffmpeg, FLAC, MP3, MP4... |
||
|
Programming
-
cbear 1.0.0.172
The 'cbear' framework is a set of libraries and common utilities for different programming languages and platforms. |
675.81 KB | |
|
Libraries
-
Games::Euchre::AI 1.02
Games::Euchre::AI is a Player API for Euchre card game. This class implements a skeletal Euchre player programming interface. Subclasses can be created quite easily as interactive interfaces or AI computer players. If you wish to write your own... |
21.5 KB | |
|
Libraries
-
Term::TtyRec::Player 0.03
Term::TtyRec::Player is a Perl module that playbacks ttyrec data. SYNOPSIS use Term::TtyRec::Player; use FileHandle; # $handle is any IO::* object my $handle = FileHandle->new(file.tty); my $player = Term::TtyRec::Player->new($handle);... |
4.1 KB | |
|
Audio Tools
-
Cue Player Premium 3.11.11
Cue Player Premium is compact program that will help you play theater sound cues and create new cues from regular audio files. If you can get your cues into .wav, .ogg, wma or .mp3 files, and there are many programs to do this, plus the CDs of... |
||
|
MP3 Tools
-
Xtreme Media Player 0.7.0
Xtreme Media Player is a handy, most easy to use, cross-platform media player. Beging developed in Java will most likelly work on all systems. The fact that you can listen to a lot of audio formats will certainly appeal to the user. Also this... |
5.9 MB | |
|
MP3 Players
-
Cool MP3 Player 1.0
For the PC users out there that want an MP3 player with all the must-have features, but none of the extras. Cool MP3 Player features Playlist creation, shuffle, repeat, and an equalizer. The program is a lot more simple, smaller and easier to use... |
299 KB | |
|
Multi-Purpose Video Players
-
DivX Play Bundle (incl. DivX Player) 6.2
This bundle includes the DivX Player and DivX 6.2 codec. Both are free and no adware is included in the package. The DivX Player plays all .AVI and .divx files that contain DivX video and MP3 audio (including DivX 3, 4, 5 and 6 video formats), and... |
14.84 MB | |
|
Audio Tools
-
Randomplay 0.49
Randomplay is a command-line based shuffle music player that remembers songs between sessions. Randomplay plays your music collection (or execute any arbitrary commands on any arbitrary filetypes) in random order, remembering songs played across... |
21.5 KB |
|
Programming
-
RailsTidy 0.1
RailsTidy project is a plugin for Ruby On Rails.. |
11.26 KB | |
|
Programming
-
Strings edit 1.9
Strings edit is a library that provides I/O facilities for integer, floating-point, Roman numbers, and strings. Both input and output subroutines support string pointers for consequent stream processing. The output can be aligned in a fixed size... |
54.27 KB | |
|
Programming
-
BScript 0.3
BScript is a (yet another) BASIC interpreter. It is free software and open-sourced, licensed under the terms of the GNU General Public License version 2 or later. You can use BScript to teach BASIC to your students, write understandable shell... |
112.64 KB | |
|
Programming
-
Kits JavaScript Brainf*ck Interpreter 0.01
Kits JavaScript Brainf*ck Interpreter is a rather fast interpreter for the Brainf*ck esoteric programming language.. Kit's JavaScript Brainfuck Interpreter v0.01 |
5.12 KB | |
|
Programming
-
dis6502 0.12
dis6502 is a flow-tracing disassembler for the 6502, originally written by Robert Bond and supporting Atari binary files. Robert posted dis6502 to the Usenet newsgroup net.sources on 9-Oct-1986, and to comp.sources.unix 7-Jun-1988. Udi... |
19.46 KB | |
|
Libraries
-
Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;... |
8.19 KB | |
|
Libraries
-
sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also... |
10.24 KB | |
|
Libraries
-
App::SimpleScan::Substitution::Line 2.02
App::SimpleScan::Substitution::Line is a line with optional fixed variable values. SYNOPSIS my $line = App::SimpleScan::Substitution::Line->new(" this "); # Use only this value when substituting " ". $line->fix(substituite =>... |
54.27 KB | |
|
Libraries
-
PDL::Graphics::TriD 2.4.3
PDL::Graphics::TriD is a PDL 3D interface. SYNOPSIS use PDL::Graphics::TriD; # After each graph, let the user rotate is and # wait for him to press q, then make new graph line3d($coords); # $coords = (3,n,...) line3d($coords,$colors); #... |
2.1 MB | |
|
Libraries
-
SmartColorWell 1.2
SmartColorWell is a cross-platform open-source ColorWell class for REALbasic 4 or greater. The SmartColorWell control stores a color value and displays that color in a simulated BevelButton that when pressed allows the user to change the color... |
21.5 KB |
