![]() |
|
#include <relativevolumeframe.h>
Inheritance diagram for TagLib::ID3v2::RelativeVolumeFrame:
Public Types | |
enum | ChannelType { Other = 0x00, MasterVolume = 0x01, FrontRight = 0x02, FrontLeft = 0x03, BackRight = 0x04, BackLeft = 0x05, FrontCentre = 0x06, BackCentre = 0x07, Subwoofer = 0x08 } |
Public Member Functions | |
RelativeVolumeFrame () | |
RelativeVolumeFrame (const ByteVector &data) | |
virtual | ~RelativeVolumeFrame () |
virtual String | toString () const |
ChannelType | channelType () const |
void | setChannelType (ChannelType t) |
short | volumeAdjustmentIndex () const |
void | setVolumeAdjustmentIndex (short index) |
float | volumeAdjustment () const |
void | setVolumeAdjustment (float adjustment) |
PeakVolume | peakVolume () const |
void | setPeakVolume (const PeakVolume &peak) |
Protected Member Functions | |
virtual void | parseFields (const ByteVector &data) |
virtual ByteVector | renderFields () const |
Friends | |
class | FrameFactory |
This is an implementation of ID3v2 relative volume adjustment. The presense of this frame makes it possible to specify an increase in volume for an audio file or specific audio tracks in that file.
Multiple relative volume adjustment frames may be present in the tag each with a unique identification and describing volume adjustment for different channel types.
|
|
Constructs a RelativeVolumeFrame. The relevant data should be set manually. |
|
Constructs a RelativeVolumeFrame based on the contents of data. |
|
Destroys the RelativeVolumeFrame instance. |
|
Returns the channel type that this frame refers to.
|
|
Called by parse() to parse the field data. It makes this information available through the public API. This must be overridden by the subclasses. Implements TagLib::ID3v2::Frame. |
|
Returns the peak volume (represented as a length and a string of bits).
|
|
Render the field data back to a binary format in a ByteVector. This must be overridden by subclasses. Implements TagLib::ID3v2::Frame. |
|
Sets the channel type that this frame refers to.
|
|
Sets the peak volume to peak.
|
|
Set the relative volume adjustment in decibels to adjustment.
|
|
Set the volume adjustment to index. As indicated by the ID3v2 standard this is a 16-bit signed integer that reflects the decibils of adjustment when divided by 512.
|
|
Returns the frame's identification.
Implements TagLib::ID3v2::Frame. |
|
Returns the relative volume adjustment in decibels.
|
|
Returns the relative volume adjustment "index". As indicated by the ID3v2 standard this is a 16-bit signed integer that reflects the decibils of adjustment when divided by 512.
|
|
Reimplemented from TagLib::ID3v2::Frame. |