Android.Media.MediaPlayer.AttachAuxEffect Method
Attaches an auxiliary effect to the player.

Syntax

[Android.Runtime.Register("attachAuxEffect", "(I)V", "GetAttachAuxEffect_IHandler")]
public virtual void AttachAuxEffect (int effectId)

See Also

MediaPlayer.SetAuxEffectSendLevel(float)

Parameters

effectId
system wide unique id of the effect to attach

Remarks

Attaches an auxiliary effect to the player. A typical auxiliary effect is a reverberation effect which can be applied on any sound source that directs a certain amount of its energy to this effect. This amount is defined by setAuxEffectSendLevel(). .

After creating an auxiliary effect (e.g. Android.Media.Audiofx.EnvironmentalReverb), retrieve its ID with Android.Media.Audiofx.AudioEffect.Id and use it when calling this method to attach the player to the effect.

To detach the effect from the player, call this method with a null effect id.

This method must be called after one of the overloaded setDataSource methods.

[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