LoudnessEnhancer.SetTargetGain(Int32) Method

Definition

Set the target gain for the audio effect.

[Android.Runtime.Register("setTargetGain", "(I)V", "GetSetTargetGain_IHandler")]
public virtual void SetTargetGain (int gainmB);
[<Android.Runtime.Register("setTargetGain", "(I)V", "GetSetTargetGain_IHandler")>]
abstract member SetTargetGain : int -> unit
override this.SetTargetGain : int -> unit

Parameters

gainmB
Int32

the effect target gain expressed in mB. 0mB corresponds to no amplification.

Attributes

Exceptions

Remarks

Set the target gain for the audio effect. The target gain is the maximum value by which a sample value will be amplified when the effect is enabled.

Java documentation for android.media.audiofx.LoudnessEnhancer.setTargetGain(int).

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