I am trying to apply the Bass Effects programmatically by using the following code:
BassBoost bassBoost = new BassBoost(0, audioSessionId);
bassBoost.setEnabled(true);
BassBoost.Settings bassBoostSettingTemp = bassBoost.getProperties();
BassBoost.Settings bassBoostSetting = new BassBoost.Settings(bassBoostSettingTemp.toString());
bassBoostSetting.strength = MAX_STRENGTH_FOR_BASS; // 1000
bassBoost.setProperties(bassBoostSetting);
bassBoost.setStrength((short) progress); // progress value from seek bar
But the bass effects aren't applied on the current audio session.
Please help me by showing me what's wrong.