Audio::TagLib::AudioProperties - A simple, abstract interface to common audio


Audio-TagLib documentation Contained in the Audio-TagLib distribution.

Index


Code Index:

NAME

Top

Audio::TagLib::AudioProperties - A simple, abstract interface to common audio properties

DESCRIPTION

Top

The values here are common to most audio formats. For more specific, codec dependant values, please see see the subclasses APIs. This is meant to compliment the Audio::TagLib::File and Audio::TagLib::Tag APIs in providing a simple interface that is sufficient for most applications.

%_ReadStyle

Reading audio properties from a file can sometimes be very time consuming and for the most accurate results can often involve reading the entire file. Because in many situations speed is critical or the accuracy of the values is not particularly important this allows the level of desired accuracy to be set.

keys %Audio::TagLib::AudioProperties::_ReadStyle lists all available values used in Perl code.

see FLAC::Properties MPC::Properties MPEG::Properties Vorbis::Properties

DESTROY()

Destroys this AudioProperties instance.

length() [pure virtual]

Returns the lenght of the file in seconds.

bitrate() [pure virtual]

Returns the most appropriate bit rate for the file in kb/s. For constant bitrate formats this is simply the bitrate of the file. For variable bitrate formats this is either the average or nominal bitrate.

sampleRate() [pure virtual]

Returns the sample rate in Hz.

channels() [pure virtual]

Returns the number of audio channels.

EXPORT

None by default.

SEE ALSO

Top

Audio::TagLib

AUTHOR

Top

Dongxu Ma, <dongxu@cpan.org>

COPYRIGHT AND LICENSE

Top


Audio-TagLib documentation Contained in the Audio-TagLib distribution.

package Audio::TagLib::AudioProperties;

use 5.008003;
use strict;
use warnings;

our $VERSION = '1.41';

use Audio::TagLib;

our %_ReadStyle = (
    "Fast"     => 0,
    "Average"  => 1,
    "Accurate" => 2,
);

# Preloaded methods go here.

1;
__END__
# Below is stub documentation for your module. You'd better edit it!