Audio::TagLib::ID3v2::RelativeVolumeFrame::PeakVolume - Struct that stores


Audio-TagLib documentation  | view source Contained in the Audio-TagLib distribution.

Index


NAME

Top

Audio::TagLib::ID3v2::RelativeVolumeFrame::PeakVolume - Struct that stores the relevant values for ID3v2 peak volume

SYNOPSIS

Top

  use Audio::TagLib::ID3v2::RelativeVolumeFrame::PeakVolume;

  my $i = Audio::TagLib::ID3v2::RelativeVolumeFrame::PeakVolume->new();
  $i->setBitsRepresentingPeak(20);
  print $i->bitsRepresentingPeak(), "\n"; # got 20
  $i->setPeakVolume(Audio::TagLib::ByteVector->new("1111"));
  print $i->peakVolume()->data(), "\n"; # got "1111"

DESCRIPTION

Top

The peak volume is described as a series of bits that is padded to fill a block of bytes. These two values should always be updated in tandem.

new()

Constructs an empty peak volume description.

UV bitsRepresentingPeak()

Returns the number of bits (in the range of 0 to 255) used to describe the peak volume.

void setBitsRepresentingPeak(UV $b)

Sets the number of bits to $b, which is used to describe the peak volume.

ByteVector peakVolume()

Returns the array of bits (represented as a series of bytes) used to describe the peak volume.

void setPeakVolume(ByteVector $v)

Sets the array of bits to $v, which is used ot describe the peak volume.

EXPORT

None by default.

SEE ALSO

Top

Audio::TagLib

AUTHOR

Top

Dongxu Ma, <dongxu@cpan.org>

COPYRIGHT AND LICENSE

Top


Audio-TagLib documentation  | view source Contained in the Audio-TagLib distribution.