org.qtunes.replaygain
Class GainAnalysis

java.lang.Object
  extended by org.qtunes.replaygain.GainAnalysis
All Implemented Interfaces:
Serializable

public class GainAnalysis
extends Object
implements Serializable

Represents a previously calculated analysis, which may be saved to a database or passed into getAdjustment(float)

See Also:
Serialized Form

Method Summary
 boolean equals(Object o)
           
static GainAnalysis fromString(String data)
           
static float getAdjustment(Collection<GainAnalysis> analyses, float gain)
          Get the adjustment required to set the specified tracks to the specified Gain level
 float getAdjustment(float gain)
          Get the adjustment required to set the track to the specified Gain level
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

equals

public boolean equals(Object o)
Overrides:
equals in class Object

getAdjustment

public float getAdjustment(float gain)
Get the adjustment required to set the track to the specified Gain level


getAdjustment

public static float getAdjustment(Collection<GainAnalysis> analyses,
                                  float gain)
Get the adjustment required to set the specified tracks to the specified Gain level


toString

public String toString()
Overrides:
toString in class Object

fromString

public static GainAnalysis fromString(String data)