org.jaudiotagger.tag.id3.framebody
Class FrameBodyEQU2
java.lang.Object
org.jaudiotagger.tag.id3.AbstractTagItem
org.jaudiotagger.tag.id3.AbstractTagFrameBody
org.jaudiotagger.tag.id3.framebody.AbstractID3v2FrameBody
org.jaudiotagger.tag.id3.framebody.FrameBodyEQU2
- All Implemented Interfaces:
- ID3v24FrameBody
public class FrameBodyEQU2
- extends AbstractID3v2FrameBody
- implements ID3v24FrameBody
Equalisation (2)
This is another subjective, alignment frame. It allows the user to
predefine an equalisation curve within the audio file. There may be
more than one "EQU2" frame in each tag, but only one with the same
identification string.
Interpolation method $xx
Identification $00
The 'interpolation method' describes which method is preferred when
an interpolation between the adjustment point that follows. The
following methods are currently defined:
$00 Band
No interpolation is made. A jump from one adjustment level to
another occurs in the middle between two adjustment points.
$01 Linear
Interpolation between adjustment points is linear.
The 'identification' string is used to identify the situation and/or
device where this adjustment should apply. The following is then
repeated for every adjustment point
Frequency $xx xx
Volume adjustment $xx xx
The frequency is stored in units of 1/2 Hz, giving it a range from 0
to 32767 Hz.
The volume adjustment is encoded as a fixed point decibel value, 16
bit signed integer representing (adjustment*512), giving +/- 64 dB
with a precision of 0.001953125 dB. E.g. +2 dB is stored as $04 00
and -2 dB is $FC 00.
Adjustment points should be ordered by frequency and one frequency
should only be described once in the frame.
Constructor Summary |
FrameBodyEQU2()
Creates a new FrameBodyEQU2 datatype. |
FrameBodyEQU2(java.nio.ByteBuffer byteBuffer,
int frameSize)
Creates a new FrameBodyEQU2 datatype. |
FrameBodyEQU2(byte interpolationMethod,
java.lang.String owner,
short frequency,
short volumeAdjustment)
Creates a new FrameBodyEQU2 datatype. |
FrameBodyEQU2(FrameBodyEQU2 body)
|
Method Summary |
void |
addGroup(short frequency,
short volumeAdjustment)
|
java.lang.String |
getIdentifier()
The ID3v2 frame identifier |
java.lang.String |
getOwner()
|
void |
getOwner(java.lang.String description)
|
Methods inherited from class org.jaudiotagger.tag.id3.AbstractTagFrameBody |
getBriefDescription, getHeader, getLongDescription, getObject, getObjectValue, getTextEncoding, isSubsetOf, iterator, setHeader, setObjectValue, setTextEncoding, toString |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
FrameBodyEQU2
public FrameBodyEQU2()
- Creates a new FrameBodyEQU2 datatype.
FrameBodyEQU2
public FrameBodyEQU2(FrameBodyEQU2 body)
FrameBodyEQU2
public FrameBodyEQU2(byte interpolationMethod,
java.lang.String owner,
short frequency,
short volumeAdjustment)
- Creates a new FrameBodyEQU2 datatype.
- Parameters:
interpolationMethod
- owner
- frequency
- volumeAdjustment
-
FrameBodyEQU2
public FrameBodyEQU2(java.nio.ByteBuffer byteBuffer,
int frameSize)
throws InvalidTagException
- Creates a new FrameBodyEQU2 datatype.
- Throws:
InvalidTagException
- if unable to create framebody from buffer
getIdentifier
public java.lang.String getIdentifier()
- The ID3v2 frame identifier
- Specified by:
getIdentifier
in class AbstractID3v2FrameBody
- Returns:
- the ID3v2 frame identifier for this frame type
getOwner
public java.lang.String getOwner()
- Returns:
getOwner
public void getOwner(java.lang.String description)
- Parameters:
description
-
addGroup
public void addGroup(short frequency,
short volumeAdjustment)
- Parameters:
frequency
- volumeAdjustment
-