Search code examples
androidaudioequalizer

Android audio effect limits to 5 bands


I use Android Audio Effect/Equalizer API for my app. However, it limits to 5 bands. Is there any document/library that helps to tune more bands for a finer equalizer implementation?


Solution

  • It varies from device to device getNumberOfBands tell you the number of Equalizer effect. Some devices have 5,8 and 13,etc.

    Equalizer equalizer = new Equalizer(0,mediaplayer.getAudioSessionId());
    
    equalizer.setEnabled(true);
    
    equalizer.getNumberOfBands(); //it tells you the number of equalizer in device.
    

    Also have a look at this