10 Jun 2009 15:13:10 UTC
- Development release
- Distribution: Audio-TagLib
- Module version: 1.41
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (5)
- Testers (0 / 11 / 10)
- KwaliteeBus factor: 1
- License: perl_5
- Activity24 month
- Download (1.45MB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
Audio::TagLib::ID3v2::RelativeVolumeFrame::PeakVolume - Struct that stores the relevant values for ID3v2 peak volume
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"
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.
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.
None by default.
Dongxu Ma, <firstname.lastname@example.org>
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.
Module Install Instructions
To install Audio::TagLib, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Audio::TagLib
For more information on module installation, please visit the detailed CPAN module installation guide.