Try to search your question here, if you can't find : Ask Any Question Now ?


HomeCategory: stackoverflowAndroid Equalizer – How to use ACTION_OPEN_AUDIO_EFFECT_CONTROL_SESSION?
Avatarrupesh asked 5 days ago

I want to apply equalizer changes to all apps. However, the use of 0 as a global session id was deprecated, you have to use:

        mEqualizer = new Equalizer(0, mPlayer.getAudioSessionId());

instead of mEqualizer = new Equalizer(0, 0);

According to Android, you can use ACTION_OPEN_AUDIO_EFFECT_CONTROL_SESSION to receive the id of a playing audio 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.

However, how are you supposed to use it? I tried adding the constant in the manifest, but it didn’t work:

<receiver android:name=".receivers.AudioSessionReceiver">
            <action android:name=""/>

(when I play an audio file, or a music video, the receiver isn’t called)

If this is not the way to apply audio (equalizer) settings to other apps, what is?

Update: I simply had issues with the Logcat, now it works, but only with Spotify and not other apps.

1 Answers
Best Answer
AvatarFernando answered 5 days ago
Your Answer

5 + 9 =

Popular Tags

WP Facebook Auto Publish Powered By :