NAME

TagLib::MPEG::Properties - An implementation of audio property reading for MP3

SYNOPSIS

use TagLib::MPEG::Properties;

my $f = TagLib::MPEG::File->new("sample file.mp3");
my $i = $f->audioProperties();
print $i->layer(), "\n"; # got 3

DESCRIPTION

This reads the data from an MPEG Layer III stream found in the AudioProperties API.

new(PV $file, PV $style = "Average")

Create an instance of MPEG::Properties with the data read from the MPEG::File $file.

DESTROY()

Destroys this MPEG Properties instance.

IV length()
IV bitrate()
IV sampleRate()
IV channels()

see AudioProperties

PV version()

Returns the MPEG Version of the file.

see TagLib::MPEG::Header

IV layer()

Returns the layer version. This will be between the values 1-3.

BOOL protectionEnabled()

Returns true if the MPEG protection bit is enabled.

PV channelMode()

Returns the channel mode for this frame.

see TagLib::MPEG::Header

BOOL isCopyrighted()

Returns true if the copyrighted bit is set.

BOOL isOriginal()

Returns true if the "original" bit is set.

EXPORT

None by default.

SEE ALSO

TagLib AudioProperties

AUTHOR

Dongxu Ma, <dongxu.ma@gmail.com>

COPYRIGHT AND LICENSE

Copyright (C) 2005 by Dongxu Ma

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.7 or, at your option, any later version of Perl 5 you may have available.