Audio-Daemon-MPG123
view release on metacpan or search on metacpan
MPG123/Client.pm view on Meta::CPAN
use IO::Socket;
use IO::Select;
use Audio::Daemon::MPG123;
use vars qw(@ISA $VERSION);
@ISA = qw(Audio::Daemon::MPG123);
my $VERSION='0.9Beta';
sub new {
my $class = shift;
my $self = $class->SUPER::new(@_);
bless $self, $class;
return $self;
}
sub inline {
my $self = shift;
return if (! scalar @_);
my @args;
foreach my $arg (@_) {
if (ref $arg eq 'ARRAY') {
MPG123/Server.pm view on Meta::CPAN
$HAVEPLAY = $@?0:1;
eval "use Audio::Mixer";
$MIXER = $@?0:1;
}
@ISA = qw(Audio::Daemon::MPG123);
$VERSION='0.9Beta';
sub new {
my $class = shift;
die "Cannot find Audio::Play::MPG123" if (! $HAVEPLAY);
my $self = $class->SUPER::new(@_);
bless $self, $class;
# initilize current playlist
$self->{playlist} = [];
# initialize random index.
$self->{random} = [];
$self->{revrandom} = [];
# initilize my current states of various things
$self->{state} = {random => 0, repeat => 0, state => 0};
if ($self->{Allow}) {
$self->parse_acl('Allow');
( run in 0.419 second using v1.01-cache-2.11-cpan-a9ef4e587e4 )