Package 

Class ComfortNoiseConfig


  • 
    public class ComfortNoiseConfig
    
                        

    Represents the configuration for the comfort noise feature in audio processing. This class allows enabling or disabling comfort noise and setting the desired noise level in decibels. Comfort noise is used to simulate background noise in silence periods to improve audio quality perception.

    • Field Summary

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

      Constructors 
      Constructor Description
      ComfortNoiseConfig(boolean isEnabled, double noiseLevelDb) Constructs a ComfortNoiseConfig instance with the specified configuration.
      ComfortNoiseConfig(boolean isEnabled) Constructs a ComfortNoiseConfig instance where the comfort noise feature is enabled or disabled.The noise level is defaulted to -75 dB if not specified.
    • Method Summary

      Modifier and Type Method Description
      boolean isEnabled() Checks whether the comfort noise feature is enabled.
      double getNoiseLevelDb() Retrieves the configured noise level in decibels.
      String toString()
      • Methods inherited from class java.lang.Object

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

      • ComfortNoiseConfig

        ComfortNoiseConfig(boolean isEnabled, double noiseLevelDb)
        Constructs a ComfortNoiseConfig instance with the specified configuration.
        Parameters:
        isEnabled - Determines whether the comfort noise feature is enabled.
        noiseLevelDb - The comfort noise level in decibels to be applied.
      • ComfortNoiseConfig

        ComfortNoiseConfig(boolean isEnabled)
        Constructs a ComfortNoiseConfig instance where the comfort noise feature is enabled or disabled.The noise level is defaulted to -75 dB if not specified.
        Parameters:
        isEnabled - a boolean indicating whether the comfort noise feature is enabled.
    • Method Detail

      • isEnabled

         boolean isEnabled()

        Checks whether the comfort noise feature is enabled.

      • getNoiseLevelDb

         double getNoiseLevelDb()

        Retrieves the configured noise level in decibels.