Android.Media.AudioTrack.SetAuxEffectSendLevel Method
Sets the send level of the audio track to the attached auxiliary effect AudioTrack.AttachAuxEffect(int).

Syntax

[Android.Runtime.Register("setAuxEffectSendLevel", "(F)I", "GetSetAuxEffectSendLevel_FHandler")]
[return:Android.Runtime.GeneratedEnum]
public virtual TrackStatus SetAuxEffectSendLevel (float level)

Parameters

level
linear send level

Returns

Documentation for this section has not yet been entered.

Remarks

Sets the send level of the audio track to the attached auxiliary effect AudioTrack.AttachAuxEffect(int). Effect levels are clamped to the closed interval [0.0, max] where max is the value of AudioTrack.MaxVolume. A value of 0.0 results in no effect, and a value of 1.0 is full send.

By default the send level is 0.0f, so even if an effect is attached to the player this method must be called for the effect to be applied.

Note that the passed level value is a linear scalar. UI controls should be scaled logarithmically: the gain applied by audio framework ranges from -72dB to at least 0dB, so an appropriate conversion from linear UI input x to level is: x == 0 -> level = 0 0 < x <= R -> level = 10^(72*(x-R)/20/R)

[Android Documentation]

Requirements

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