我正在使用附加到 MediaPlayer 的音效制作应用程序,所以我让 BassBoost 工作
BassBoost bassBoost = new BassBoost(0, mp2.getAudioSessionId());
bassBoost.setEnabled(true);
BassBoost.Settings bassBoostSettingTemp = bassBoost.getProperties();
BassBoost.Settings bassBoostSetting = new BassBoost.Settings(bassBoostSettingTemp.toString());
bassBoostSetting.strength=1000;
bassBoost.setProperties(bassBoostSetting);
if(start2<1000){
start2 = (short) (start2 + 100);
//setUpBassBostandUI();
bassBoost.setStrength((short)start2);
System.out.println("short is: "+start2);}
bassBoost.setStrength((short) start2);
mp2.attachAuxEffect(bassBoost.getId());
但我无法让混响工作,我尝试了 PresentReverb,但没有任何结果,现在我正在尝试使用 EnvironmentalReverb,但没有任何效果
EnvironmentalReverb eReverb = new EnvironmentalReverb(0, mp2.getAudioSessionId());
eReverb.setDecayHFRatio((short) 100000);
eReverb.setDecayTime(100000);
eReverb.setDensity((short) 100000);
eReverb.setDiffusion((short) 100000);
eReverb.setReverbLevel((short) 100000);
eReverb.setReverbDelay(100);
eReverb.setEnabled(true);
mp2.attachAuxEffect(eReverb.getId());
mp2.setAuxEffectSendLevel(1.0f);