C# 클래스 TagLib.Id3v2.RelativeVolumeFrame

상속: TagLib.Id3v2.Frame
파일 보기 프로젝트 열기: anyoun/metageta 1 사용 예제들

공개 메소드들

메소드 설명
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