public class Level
extends java.lang.Object
Field | Description | |
---|---|---|
1. | frequency | the frequency (in hz) at which the point on EQ curve is located. Allowed values are from [0 hz - 32767 hz]. ex: 500 hz |
2. | volume | the amount to increase/decrease the volume in db. Allowed values are from [-64 db - +64 db]. ex: -2.5 db |
Constructor and Description |
---|
Level()
The default constructor is called when creating a flat level.
|
Level(short frequency,
double volume)
constructor.
|
Modifier and Type | Method and Description |
---|---|
short |
getFrequency()
get the frequency (in hz) at which the equalization level occurs.
|
double |
getVolume()
get the volume adjustment (in db) for this frequency.
|
void |
setFrequency(short frequency)
set the frequency (in hz) at which the equalization level occurs.
|
void |
setVolume(double volume)
set the amount of volume adjustment (in db) for this frequency.
Ex: +2.5 db Ex: -3.0 db |
java.lang.String |
toString()
get a string representation of an ID3v2.4 equalization level.
|
public Level()
public Level(short frequency, double volume)
frequency
- frequency (in hz)volume
- volume (in db)public short getFrequency()
public void setFrequency(short frequency)
frequency
- the frequency (in hz) at which the equalization level occurs. Allowed values are from 0 hz - 32767 hz.java.lang.IllegalArgumentException
- if the specified frequency is less than 0 hz or greater than to 32767 hz.public double getVolume()
public void setVolume(double volume)
volume
- the amount of volume (in db) to adjust this equalization level. Allowed values are from -64 db - +64 db.java.lang.IllegalArgumentException
- if the volume is not in the range of ±64 db.public java.lang.String toString()
toString
in class java.lang.Object