Android.Media.Audiofx.BassBoost.SetStrength Method
Sets the strength of the bass boost effect.

Syntax

[Android.Runtime.Register("setStrength", "(S)V", "GetSetStrength_SHandler")]
public virtual void SetStrength (short strength)

Parameters

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.

Exceptions

TypeReason
!:NoType:IllegalStateException
!:NoType:IllegalArgumentException
Java.Lang.UnsupportedOperationException
Java.Lang.IllegalStateException
Java.Lang.IllegalArgumentException

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 BassBoost.RoundedStrength method to query the (possibly rounded) value that was actually set.

[Android Documentation]

Requirements

Namespace: Android.Media.Audiofx
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 9