org.qtunes.replaygain
Class GainAnalysis

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

public class GainAnalysis
extends java.lang.Object
implements java.io.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(java.lang.Object o)
           
static GainAnalysis fromString(java.lang.String data)
           
static float getAdjustment(java.util.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
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.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(java.util.Collection<GainAnalysis> analyses,
                                  float gain)
Get the adjustment required to set the specified tracks to the specified Gain level


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

fromString

public static GainAnalysis fromString(java.lang.String data)