Share via


AudioEffect.ActionOpenAudioEffectControlSession Field

Definition

Intent to signal to the effect control application or service that a new audio session is opened and requires audio effects to be applied.

[Android.Runtime.Register("ACTION_OPEN_AUDIO_EFFECT_CONTROL_SESSION")]
public const string ActionOpenAudioEffectControlSession;
[<Android.Runtime.Register("ACTION_OPEN_AUDIO_EFFECT_CONTROL_SESSION")>]
val mutable ActionOpenAudioEffectControlSession : string

Field Value

Attributes

Remarks

Intent to signal to the effect control application or service that a new audio session is opened and requires audio effects to be applied.

This is different from #ACTION_DISPLAY_AUDIO_EFFECT_CONTROL_PANEL in that no UI should be displayed in this case. Music player applications can broadcast this intent before starting playback to make sure that any audio effect settings previously selected by the user are applied.

The effect control application receiving this intent will look for previously stored settings for the calling application, create all required audio effects and apply the effect settings to the specified audio session.

The calling package name is indicated by the #EXTRA_PACKAGE_NAME extra and the audio session ID by the #EXTRA_AUDIO_SESSION extra. Both extras are mandatory.

If no stored settings are found for the calling application, default settings for the content type indicated by #EXTRA_CONTENT_TYPE will be applied. The default settings for a given content type are platform specific.

Java documentation for android.media.audiofx.AudioEffect.ACTION_OPEN_AUDIO_EFFECT_CONTROL_SESSION.

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