1. AC Question's Avatar
    Hi,
    In my code I'm using AudioManager for playing songs. I want to add Equalizer to the app. I'm using Equalizer class.

    AudioManager manager = (AudioManager) SplashScreen.mApplicationContext.getSystemService(Context.AUDIO_SERVICE);

    int audioSessionId = manager.generateAudioSessionId();

    EqualizerModel.getInstance().setEqualizer(new Equalizer(0, audioSessionId));

    But the problem is that I don't want to generate a new audio session ID, I want to get the current Audio session ID. Do you know how can I achieve it? I saw a few examples with MediaPlayer, but if I will use it, it's mean I need to completely implement from scratch media player and this is not what I want. I'm using the default media player of the phone and I wish to continue working with it.
    06-13-2016 07:05 AM

Similar Threads

  1. Replies: 3
    Last Post: 06-14-2016, 07:50 AM
  2. Galxy s7 - how do I use music in music library as ring tone
    By AC Question in forum Ask a Question
    Replies: 0
    Last Post: 06-13-2016, 05:55 AM
  3. How to unlock a used phone from Google?
    By AC Question in forum Ask a Question
    Replies: 1
    Last Post: 06-13-2016, 05:13 AM
  4. Replies: 0
    Last Post: 06-13-2016, 04:32 AM
  5. Replies: 1
    Last Post: 06-13-2016, 04:09 AM
LINK TO POST COPIED TO CLIPBOARD