Package 

Class DynamicRangeCompressionConfig


  • 
    public class DynamicRangeCompressionConfig
    
                        

    Configuration class for dynamic range compression settings. This class provides the ability to enable or disable dynamic range compression and set the parameters for compression, such as threshold and ratio.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final boolean isEnabled
      private final double threshold
      private final double ratio
    • Constructor Summary

      Constructors 
      Constructor Description
      DynamicRangeCompressionConfig(boolean isEnabled, double threshold, double ratio) Creates a new configuration for dynamic range compression.
      DynamicRangeCompressionConfig(boolean isEnabled) Constructs a new configuration for dynamic range compression with default threshold and ratio values.
    • Method Summary

      Modifier and Type Method Description
      boolean isEnabled() Determines if the dynamic range compression is enabled.
      double getThreshold() Retrieves the threshold value for dynamic range compression.
      double getRatio() Retrieves the compression ratio applied during dynamic range compression.
      String toString()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DynamicRangeCompressionConfig

        DynamicRangeCompressionConfig(boolean isEnabled, double threshold, double ratio)
        Creates a new configuration for dynamic range compression.
        Parameters:
        isEnabled - Indicates whether dynamic range compression is enabled.
        threshold - The threshold (in decibels) above which compression will occur.
        ratio - The ratio of compression applied once the threshold is exceeded.
      • DynamicRangeCompressionConfig

        DynamicRangeCompressionConfig(boolean isEnabled)
        Constructs a new configuration for dynamic range compression with default threshold and ratio values.
        Parameters:
        isEnabled - Indicates whether dynamic range compression is enabled.
    • Method Detail

      • isEnabled

         boolean isEnabled()

        Determines if the dynamic range compression is enabled.

      • getThreshold

         double getThreshold()

        Retrieves the threshold value for dynamic range compression.

      • getRatio

         double getRatio()

        Retrieves the compression ratio applied during dynamic range compression.