C# Класс TagLib.Id3v2.RelativeVolumeFrame

Наследование: TagLib.Id3v2.Frame
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Clone ( ) : TagLib.Id3v2.Frame

Creates a deep copy of the current instance.

Get ( Tag tag, string identification, bool create ) : RelativeVolumeFrame

Gets a specified volume adjustment frame from the specified tag, optionally creating it if it does not exist.

GetPeakVolume ( ChannelType type ) : double

Gets the peak volume for a specified channel.

GetPeakVolumeIndex ( ChannelType type ) : ulong

Gets the peak volume index for a specified channel.

The peak volume index is simply the peak volume multiplied by 512.

GetVolumeAdjustment ( ChannelType type ) : float

Gets the volume adjustment for a specified channel.

The value can be between -64dB and +64dB.

GetVolumeAdjustmentIndex ( ChannelType type ) : short

Gets the volume adjustment index for a specified channel.

The volume adjustment index is simply the volume adjustment multiplied by 512.

RelativeVolumeFrame ( ByteVector data, byte version ) : System

Constructs and initializes a new instance of by reading its raw data in a specified ID3v2 version.

RelativeVolumeFrame ( string identification ) : System

Constructs and initializes a new instance of with a specified identifier.

SetPeakVolume ( ChannelType type, double peak ) : void

Sets the peak volume for a specified channel.

SetPeakVolumeIndex ( ChannelType type, ulong index ) : void

Sets the peak volume index for a specified channel.

The peak volume index is simply the peak volume multiplied by 512.

SetVolumeAdjustment ( ChannelType type, float adjustment ) : void

Sets the volume adjustment for a specified channel.

The value can be between -64dB and +64dB.

SetVolumeAdjustmentIndex ( ChannelType type, short index ) : void

Sets the volume adjustment index for a specified channel.

ToString ( ) : string

Creates a text description of the current instance.

Защищенные методы

Метод Описание
ParseFields ( ByteVector data, byte version ) : void

Populates the values in the current instance by parsing its field data in a specified version.

RelativeVolumeFrame ( ByteVector data, int offset, TagLib.Id3v2.FrameHeader header, byte version ) : System

Constructs and initializes a new instance of by reading its raw data in a specified ID3v2 version.

RenderFields ( byte version ) : ByteVector

Renders the values in the current instance into field data for a specified version.

Приватные методы

Метод Описание
BitsToBytes ( int i ) : int

Описание методов

Clone() публичный Метод

Creates a deep copy of the current instance.
public Clone ( ) : TagLib.Id3v2.Frame
Результат TagLib.Id3v2.Frame

Get() публичный статический Метод

Gets a specified volume adjustment frame from the specified tag, optionally creating it if it does not exist.
public static Get ( Tag tag, string identification, bool create ) : RelativeVolumeFrame
tag TagLib.Tag /// A object to search in. ///
identification string /// A specifying the identification to /// match. ///
create bool /// A specifying whether or not to create /// and add a new frame to the tag if a match is not found. ///
Результат RelativeVolumeFrame

GetPeakVolume() публичный Метод

Gets the peak volume for a specified channel.
public GetPeakVolume ( ChannelType type ) : double
type ChannelType /// A value specifying which /// channel to get the value for. ///
Результат double

GetPeakVolumeIndex() публичный Метод

Gets the peak volume index for a specified channel.
The peak volume index is simply the peak volume multiplied by 512.
public GetPeakVolumeIndex ( ChannelType type ) : ulong
type ChannelType /// A value specifying which /// channel to get the value for. ///
Результат ulong

GetVolumeAdjustment() публичный Метод

Gets the volume adjustment for a specified channel.
The value can be between -64dB and +64dB.
public GetVolumeAdjustment ( ChannelType type ) : float
type ChannelType /// A value specifying which /// channel to get the value for. ///
Результат float

GetVolumeAdjustmentIndex() публичный Метод

Gets the volume adjustment index for a specified channel.
The volume adjustment index is simply the volume adjustment multiplied by 512.
public GetVolumeAdjustmentIndex ( ChannelType type ) : short
type ChannelType /// A value specifying which /// channel to get the value for. ///
Результат short

ParseFields() защищенный Метод

Populates the values in the current instance by parsing its field data in a specified version.
/// contains less than 5 bytes. ///
protected ParseFields ( ByteVector data, byte version ) : void
data ByteVector /// A object containing the /// extracted field data. ///
version byte /// A indicating the ID3v2 version the /// field data is encoded in. ///
Результат void

RelativeVolumeFrame() публичный Метод

Constructs and initializes a new instance of by reading its raw data in a specified ID3v2 version.
public RelativeVolumeFrame ( ByteVector data, byte version ) : System
data ByteVector /// A object starting with the raw /// representation of the new frame. ///
version byte /// A indicating the ID3v2 version the /// raw frame is encoded in. ///
Результат System

RelativeVolumeFrame() защищенный Метод

Constructs and initializes a new instance of by reading its raw data in a specified ID3v2 version.
protected RelativeVolumeFrame ( ByteVector data, int offset, TagLib.Id3v2.FrameHeader header, byte version ) : System
data ByteVector /// A object containing the raw /// representation of the new frame. ///
offset int /// A indicating at what offset in /// the frame actually begins. ///
header TagLib.Id3v2.FrameHeader /// A containing the header of the /// frame found at in the data. ///
version byte /// A indicating the ID3v2 version the /// raw frame is encoded in. ///
Результат System

RelativeVolumeFrame() публичный Метод

Constructs and initializes a new instance of with a specified identifier.
public RelativeVolumeFrame ( string identification ) : System
identification string /// A object containing the /// identification to use for the new frame. ///
Результат System

RenderFields() защищенный Метод

Renders the values in the current instance into field data for a specified version.
protected RenderFields ( byte version ) : ByteVector
version byte /// A indicating the ID3v2 version the /// field data is to be encoded in. ///
Результат ByteVector

SetPeakVolume() публичный Метод

Sets the peak volume for a specified channel.
public SetPeakVolume ( ChannelType type, double peak ) : void
type ChannelType /// A value specifying which /// channel to set the value for. ///
peak double /// A value containing the peak volume. ///
Результат void

SetPeakVolumeIndex() публичный Метод

Sets the peak volume index for a specified channel.
The peak volume index is simply the peak volume multiplied by 512.
public SetPeakVolumeIndex ( ChannelType type, ulong index ) : void
type ChannelType /// A value specifying which /// channel to set the value for. ///
index ulong /// A value containing the peak volume /// index. ///
Результат void

SetVolumeAdjustment() публичный Метод

Sets the volume adjustment for a specified channel.
The value can be between -64dB and +64dB.
public SetVolumeAdjustment ( ChannelType type, float adjustment ) : void
type ChannelType /// A value specifying which /// channel to set the value for. ///
adjustment float /// A value containing the volume /// adjustment in decibles. ///
Результат void

SetVolumeAdjustmentIndex() публичный Метод

Sets the volume adjustment index for a specified channel.
public SetVolumeAdjustmentIndex ( ChannelType type, short index ) : void
type ChannelType /// A value specifying which /// channel to set the value for. ///
index short /// A value containing the volume /// adjustment index. ///
Результат void

ToString() публичный Метод

Creates a text description of the current instance.
public ToString ( ) : string
Результат string