Skip to main content
One Hit Wonder
March 25, 2024
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

  • March 25, 2024
  • 3 replies
  • 160 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

    Best answer by Nina Nebo

     

    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

    3 replies

    awesomemac
    Superuser
    Superuser
    March 25, 2024

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

    Nina Nebo
    Superuser
    Nina NeboAnswer
    Superuser
    March 26, 2024

     

    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

    💜🎧 | Why not just live in the moment, especially if it has a good beat | 🎶💜
    José.Deezer
    Deezer Staff
    Deezer Staff
    October 14, 2024

    Hello @lifezp cloud you didn’t reply on this topic.

    Recently we have spotted a similar message on an App review:


    ★★★☆☆

    Translation:

    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

    Wonder if both came from the same person.

    Could send us some screenshots where did you get that information and also inform the OS version and Deezer version? Appreciate your help.

    JSousa