include
Answered

App reports incorrect android.media.action.CLOSE_AUDIO_EFFECT_CONTROL_SESSION instead of android.media.action.OPEN_AUDIO_EFFECT_CONTROL_SESSION, resulting in the equalization not being applied

  • 25 March 2024
  • 2 replies
  • 27 views

App reports incorrect android.media.action.CLOSE_AUDIO_EFFECT_CONTROL_SESSION instead of android.media.action.OPEN_AUDIO_EFFECT_CONTROL_SESSION, resulting in the equalization not being applied

icon

Best answer by Nina Nebo 26 March 2024, 09:04

View original

2 replies

Userlevel 7
Badge +5

?? Can you please tell us what you mean with this?

Userlevel 7
Badge +12

 

Hi @lifezp cloud !

 

Android Audio Effect 


ACTION_CLOSE_AUDIO_EFFECT_CONTROL_SESSION
Intent to signal to the effect control application or service that an audio session is closed and that effects should not be applied anymore.

The effect control application receiving this intent will delete all effects on this session and store current settings in package specific storage.

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.

It is good practice for applications to broadcast this intent when music playback stops and/or when exiting to free system resources consumed by audio effect engines.

 

Constant Value: "android.media.action.CLOSE_AUDIO_EFFECT_CONTROL_SESSION

 

ACTION_OPEN_AUDIO_EFFECT_CONTROL_SESSION

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.

 

Constant Value: "android.media.action.OPEN_AUDIO_EFFECT_CONTROL_SESSION"

 

source https://developer.android.com/reference/android/media/audiofx/AudioEffect

Reply