Android.Media.Audiofx.Equalizer.SetBandLevel Method
Sets the given equalizer band to the given gain value.

Syntax

[Android.Runtime.Register("setBandLevel", "(SS)V", "GetSetBandLevel_SSHandler")]
public virtual void SetBandLevel (short band, short level)

See Also

Equalizer.NumberOfBands

Parameters

band
frequency band that will have the new gain. The numbering of the bands starts from 0 and ends at (number of bands - 1).
level
new gain in millibels that will be set to the given band. getBandLevelRange() will define the maximum and minimum values.

Exceptions

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

Remarks

Sets the given equalizer band to the given gain value.

[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