Share via


Virtualizer.SetStrength(Int16) Method

Definition

Sets the strength of the virtualizer effect.

[Android.Runtime.Register("setStrength", "(S)V", "GetSetStrength_SHandler")]
public virtual void SetStrength (short strength);
[<Android.Runtime.Register("setStrength", "(S)V", "GetSetStrength_SHandler")>]
abstract member SetStrength : int16 -> unit
override this.SetStrength : int16 -> unit

Parameters

strength
Int16

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.

Attributes

Exceptions

Remarks

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.

Java documentation for android.media.audiofx.Virtualizer.setStrength(short).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to