public interface

IPreAmp

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

Summary

Nested Classes
class IPreAmp.Settings The Settings class regroups the LoudnessEnhancer parameters. 
[Expand]
Inherited Constants
From interface com.h6ah4i.android.media.audiofx.IAudioEffect
Public Methods
abstract float getLevel()
Gets current amplitude level value.
abstract IPreAmp.Settings getProperties()
Gets the preamp properties.
abstract void setLevel(float level)
Sets amplitude level value.
abstract void setProperties(IPreAmp.Settings settings)
Sets the preamp properties.
[Expand]
Inherited Methods
From interface com.h6ah4i.android.media.IReleasable
From interface com.h6ah4i.android.media.audiofx.IAudioEffect

Public Methods

public abstract float getLevel ()

Gets current amplitude level value.

Returns
  • current amplitude level value.
Throws
IllegalStateException
IllegalArgumentException
UnsupportedOperationException
IllegalArgumentException
IllegalStateException

public abstract IPreAmp.Settings getProperties ()

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

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

public abstract void setLevel (float level)

Sets amplitude level value.

Parameters
level new gain in linear.
Throws
IllegalStateException
IllegalArgumentException
UnsupportedOperationException
IllegalArgumentException
IllegalStateException

public abstract void setProperties (IPreAmp.Settings settings)

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

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