Audio::TagLib::MPEG::Properties - An implementation of audio property reading


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

Index


Code Index:

NAME

Top

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

SYNOPSIS

Top

  use Audio::TagLib::MPEG::Properties;

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

DESCRIPTION

Top

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 Audio::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 Audio::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

Top

Audio::TagLib AudioProperties

AUTHOR

Top

Dongxu Ma, <dongxu@cpan.org>

COPYRIGHT AND LICENSE

Top


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

package Audio::TagLib::MPEG::Properties;

use 5.008003;
use strict;
use warnings;

our $VERSION = '1.41';

use Audio::TagLib;

our @ISA = qw(Audio::TagLib::AudioProperties);

# Preloaded methods go here.

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