public interface

ILoudnessEnhancer

implements IAudioEffect
com.h6ah4i.android.media.audiofx.ILoudnessEnhancer
Known Indirect Subclasses

Summary

Nested Classes
class ILoudnessEnhancer.Settings The Settings class regroups the LoudnessEnhancer parameters. 
Constants
int PARAM_TARGET_GAIN_MB The maximum gain applied applied to the signal to process.
[Expand]
Inherited Constants
From interface com.h6ah4i.android.media.audiofx.IAudioEffect
Public Methods
abstract ILoudnessEnhancer.Settings getProperties()
Gets the ludness enhancer properties.
abstract float getTargetGain()
Return the target gain.
abstract void setProperties(ILoudnessEnhancer.Settings settings)
Sets the ludness enhancer properties.
abstract void setTargetGain(int gainmB)
Return the target gain.
[Expand]
Inherited Methods
From interface com.h6ah4i.android.media.IReleasable
From interface com.h6ah4i.android.media.audiofx.IAudioEffect

Constants

public static final int PARAM_TARGET_GAIN_MB

The maximum gain applied applied to the signal to process. It is expressed in millibels (100mB = 1dB) where 0mB corresponds to no amplification.

Constant Value: 0 (0x00000000)

Public Methods

public abstract ILoudnessEnhancer.Settings getProperties ()

Gets the ludness enhancer properties. This method is useful when a snapshot of current ludness enhancer settings must be saved by the application.

Returns
  • a ILoudnessEnhancer.Settings object containing all current parameters values
Throws
IllegalStateException
IllegalArgumentException
UnsupportedOperationException
IllegalArgumentException
IllegalStateException

public abstract float getTargetGain ()

Return the target gain.

Returns
  • the effect target gain expressed in mB.
Throws
IllegalStateException
IllegalArgumentException
UnsupportedOperationException
IllegalStateException

public abstract void setProperties (ILoudnessEnhancer.Settings settings)

Sets the ludness enhancer properties. This method is useful when ludness enhancer settings have to be applied from a previous backup.

Parameters
settings a ILoudnessEnhancer.Settings object containing the properties to apply
Throws
IllegalStateException
IllegalArgumentException
UnsupportedOperationException
IllegalArgumentException
IllegalStateException

public abstract void setTargetGain (int gainmB)

Return the target gain.

Throws
IllegalStateException
IllegalArgumentException
UnsupportedOperationException
IllegalArgumentException
IllegalStateException