how to get mediaplayer audioSession for Equalizer

80 views Asked by At

I am implementing a custom equalizer that requires an audio session during initialization. Equalizer(int priority, int audioSession)

There are some apps in the Google Play Store that can set their equalizer to Spotify or YT music. How can I get the current media player app's audio session to set it in the equalizer? thanks

1

There are 1 answers

1
Hassan Abbas On

You can use 0 as audio session for global music in android.