BassBoost.SetStrength(Int16) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the strength of the bass boost 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 bass boost 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.BassBoost.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.