-
public class ComfortNoiseConfigRepresents 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 booleanisEnabledprivate final doublenoiseLevelDb
-
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 booleanisEnabled()Checks whether the comfort noise feature is enabled. doublegetNoiseLevelDb()Retrieves the configured noise level in decibels. StringtoString()-
-
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.
-
-
-
-