diff --git a/Window/AUPlayerView.m b/Window/AUPlayerView.m index ad3f79d83..68f0448ff 100644 --- a/Window/AUPlayerView.m +++ b/Window/AUPlayerView.m @@ -550,6 +550,9 @@ void equalizerApplyPreset(AudioUnit au, NSDictionary * preset) { if (inParameter->mParameterID >= 0 && inParameter->mParameterID <= 31) { [_self->presetButton selectItemAtIndex:[equalizer_presets_processed count]]; } + else if (inParameter->mParameterID == kGraphicEQParam_NumberOfBands) { + [self changePreset:self->presetButton]; + } }); AudioUnitParameter param; @@ -563,6 +566,9 @@ void equalizerApplyPreset(AudioUnit au, NSDictionary * preset) { AUListenerAddParameter(listenerRef, (__bridge void *)self, ¶m); } + param.mParameterID = kGraphicEQParam_NumberOfBands; + AUListenerAddParameter(listenerRef, (__bridge void *)self, ¶m); + [[NSUserDefaultsController sharedUserDefaultsController] addObserver:self forKeyPath:@"values.GraphicEQpreset" options:0 context:nil]; if (front)