Audio-aKodePlayer

 view release on metacpan or  search on metacpan

lib/Audio/aKodePlayer.pm  view on Meta::CPAN

=item length()

Returns the length of the file/stream in milliseconds. Returns -1 if the length is unknown.

WARNING: current version of aKode (2.0.1) returns lenghts in seconds for WAV files.

=item position()

Returns the current position in file/stream in milliseconds. Returns -1 if the position is unknown.

WARNING: current version of aKode (2.0.1) returns position in seconds for WAV files.

=item seekable()

Returns true if the decoder is seekable.

=item eof()

Returns true if the decoder has reached the end-of-file/stream.

=item decoderError()

Returns true if the decoder has encountered a non-recoverable error.

=item setSampleRate(rate)

Sets the output sample-rate on the resampler to a given value. (May not
work with all sinks.)

=item setSpeed(value)

Sets the resample speed to a given value.
(May not work with all sinks.)

=item isClosed ()

Return true if the player is in the closed state.

=item isOpen ()

Return true if the player is in the open state.

=item isLoaded ()

Return true if the player is in the Loaded state.

=item isPlaying ()

Return true if the player is in the playing state.

=item isPaused ()

Return true if the player is in the paused state.

=back

=head1 CAVEATS

The C++ class provides a method aKode::Player::open(FILE), where FILE
is an overloaded class derived from the aKode::File interface. This
allows for streaming. The current bindings do not have interface for
this feature. Feel free to submit a patch.

=head1 KNOWN BUGS

Current version of aKode (2.0.1) probably contains a bug, so
position() and length() are reported in seconds rather than in
milliseconds for WAV files.

=head1 AUTHOR

Petr Pajas, C<< <pajas at matfyz.cz> >>

=head1 BUGS

Please report any bugs or feature requests to
C<bug-audio-akodeplayer at rt.cpan.org>, or through the web interface at
L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Audio-aKodePlayer>.
I will be notified, and then you'll automatically be notified of progress on
your bug as I make changes.

=head1 SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc Audio::aKodePlayer

You can also look for information at:

=over 4

=item * aKode project

L<http://carewolf.com/akode/>

=item * AnnoCPAN: Annotated CPAN documentation

L<http://annocpan.org/dist/Audio-aKodePlayer>

=item * CPAN Ratings

L<http://cpanratings.perl.org/d/Audio-aKodePlayer>

=item * RT: CPAN's request tracker

L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Audio-aKodePlayer>

=item * Search CPAN

L<http://search.cpan.org/dist/Audio-aKodePlayer>

=back

=head1 ACKNOWLEDGEMENTS

aKode library was written Allan Sandfeld.

The Perl bindings were written by Petr Pajas L<http://pajas.matfyz.cz>
and their development was supported by the grant no. 1ET101120503 of
the Grant Agency of Academy of Sciences of the Czech Republic.



( run in 0.726 second using v1.01-cache-2.11-cpan-140bd7fdf52 )