public final Equalizer newEqualizer(String presetName) {
Logger.debug("newEqualizer(presetName={})", presetName);
checkEqualizer();
int index = equalizerPresetNames.indexOf(presetName);
if(index != -1) {
libvlc_equalizer_t presetEqualizer = libvlc.libvlc_audio_equalizer_new_from_preset(index);
if(presetEqualizer != null) {
Equalizer equalizer = new Equalizer(libvlc);
equalizer.setPreamp(libvlc.libvlc_audio_equalizer_get_preamp(presetEqualizer));
for(int i = 0; i < libvlc.libvlc_audio_equalizer_get_band_count(); i++) {
equalizer.setAmp(i, libvlc.libvlc_audio_equalizer_get_amp_at_index(presetEqualizer, i));