Android.Media.Audiofx.LoudnessEnhancer.SetTargetGain Method
Set the target gain for the audio effect.

Syntax

[Android.Runtime.Register("setTargetGain", "(I)V", "GetSetTargetGain_IHandler")]
public virtual void SetTargetGain (int gainmB)

Parameters

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

Exceptions

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

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.

[Android Documentation]

Requirements

Namespace: Android.Media.Audiofx
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0