com.h6ah4i.android.media.audiofx.IVirtualizer |
Known Indirect Subclasses |
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
interface | IVirtualizer.OnParameterChangeListener | The OnParameterChangeListener interface defines a method called by the Virtualizer when a parameter value has changed. | |||||||||
class | IVirtualizer.Settings | The Settings class regroups all virtualizer parameters. |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | PARAM_STRENGTH | Is strength parameter supported by virtualizer engine. | |||||||||
int | PARAM_STRENGTH_SUPPORTED | Virtualizer effect strength. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.h6ah4i.android.media.audiofx.IAudioEffect
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract IVirtualizer.Settings |
getProperties()
Gets the virtualizer properties.
| ||||||||||
abstract short |
getRoundedStrength()
Gets the current strength of the effect.
| ||||||||||
abstract boolean |
getStrengthSupported()
Indicates whether setting strength is supported.
| ||||||||||
abstract void |
setParameterListener(IVirtualizer.OnParameterChangeListener listener)
Registers an OnParameterChangeListener interface.
| ||||||||||
abstract void |
setProperties(IVirtualizer.Settings settings)
Sets the virtualizer properties.
| ||||||||||
abstract void |
setStrength(short strength)
Sets the strength of the virtualizer effect.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.h6ah4i.android.media.IReleasable
| |||||||||||
From interface
com.h6ah4i.android.media.audiofx.IAudioEffect
|
Is strength parameter supported by virtualizer engine. Parameter ID for getParameter().
Virtualizer effect strength. Parameter ID for
IVirtualizer.OnParameterChangeListener
Gets the virtualizer properties. This method is useful when a snapshot of current virtualizer settings must be saved by the application.
IllegalStateException | |
IllegalArgumentException | |
UnsupportedOperationException | |
IllegalArgumentException | |
IllegalStateException |
Gets the current strength of the effect.
IllegalStateException | |
IllegalArgumentException | |
UnsupportedOperationException | |
IllegalArgumentException | |
IllegalStateException |
Indicates whether setting strength is supported. If this method returns false, only one strength is supported and the setStrength() method always rounds to that value.
Registers an OnParameterChangeListener interface.
listener | OnParameterChangeListener interface registered |
---|
Sets the virtualizer properties. This method is useful when virtualizer settings have to be applied from a previous backup.
settings | a IVirtualizer.Settings object containing the properties to apply |
---|
IllegalStateException | |
IllegalArgumentException | |
UnsupportedOperationException | |
IllegalArgumentException | |
IllegalStateException |
Sets the strength of the virtualizer effect. If the implementation does
not support per mille accuracy for setting the strength, it is allowed to
round the given strength to the nearest supported value. You can use the
getRoundedStrength()
method to query the (possibly rounded)
value that was actually set.
strength | strength of the effect. The valid range for strength strength is [0, 1000], where 0 per mille designates the mildest effect and 1000 per mille designates the strongest. |
---|
IllegalStateException | |
IllegalArgumentException | |
UnsupportedOperationException | |
IllegalArgumentException | |
IllegalStateException |