Class ReplayGain

    • Constructor Detail

      • ReplayGain

        public ReplayGain()
      • ReplayGain

        public ReplayGain​(String jsonString)
        Instantiate from JSON string.
        Parameters:
        jsonString - json string
        See Also:
        toJSONString()
    • Method Detail

      • getAlgorithm

        public String getAlgorithm()
      • setAlgorithm

        public void setAlgorithm​(String algorithm)
      • getReferenceLevel

        public float getReferenceLevel()
      • setReferenceLevel

        public void setReferenceLevel​(float referenceLevel)
      • getDecibelChange

        public float getDecibelChange()
      • setDecibelChange

        public void setDecibelChange​(float decibelChange)
      • getPeak

        public int getPeak()
      • getNormPeak

        public float getNormPeak()
        Peak as value between 0 and 1 (incl.).
        Returns:
        normalized peak.
      • setNormPeak

        public void setNormPeak​(float normPeak)
        Sets peak as value between 0 and 1 (incl.).
        Parameters:
        normPeak - normalized peak.
      • normPeakToIntPeak

        public static int normPeakToIntPeak​(float normPeak,
                                            int bitDepth)
      • intPeakToNormPeak

        public static float intPeakToNormPeak​(int peak,
                                              int bitDepth)
      • setPeak

        public void setPeak​(int peak)
      • getBitsPerSample

        public int getBitsPerSample()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • toJSONString

        public String toJSONString()
        Specified by:
        toJSONString in interface org.json.simple.JSONAware