Code example for Equalizer

Methods: setBandLevel

0
                    bar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {
                        @Override 
                        public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
                            short level = (short) (progress + minEQLevel);
                            if (fromUser) {
                                equalizer.setBandLevel(band, level);
                            } 
                            updateLevelText(levelTextView, level);
                        } 
 
                        @Override 
                        public void onStartTrackingTouch(SeekBar seekBar) {
                        } 
 
                        @Override 
                        public void onStopTrackingTouch(SeekBar seekBar) {
                        } 
                    }); 
                    layout.addView(bandBar);
                } 
            }