Equalizer: Track band count changes
parent
83ad969d9b
commit
c56852437d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue