[vlc-devel] [PATCH 5/6] macosx: Adapt to new equalizer code with extra sets of ISO bands
Ronald Wright
logiconcepts819 at gmail.com
Thu Jul 24 19:19:21 CEST 2014
Note: Patches 3 through 6 must be applied all together, and patches 3 and 4
cannot be applied without patch 2.
---
modules/gui/macosx/AudioEffects.m | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a/modules/gui/macosx/AudioEffects.m b/modules/gui/macosx/AudioEffects.m
index f737de0..f801b8e 100644
--- a/modules/gui/macosx/AudioEffects.m
+++ b/modules/gui/macosx/AudioEffects.m
@@ -63,19 +63,19 @@ static VLCAudioEffects *_o_sharedInstance = nil;
NSMutableArray *workNames = [[NSMutableArray alloc] initWithCapacity:NB_PRESETS];
for (int i = 0 ; i < NB_PRESETS ; i++) {
- workString = [NSString stringWithFormat:@"%.1f %.1f %.1f %.1f %.1f %.1f %.1f %.1f %.1f %.1f",
- eqz_preset_10b[i].f_amp[0],
- eqz_preset_10b[i].f_amp[1],
- eqz_preset_10b[i].f_amp[2],
- eqz_preset_10b[i].f_amp[3],
- eqz_preset_10b[i].f_amp[4],
- eqz_preset_10b[i].f_amp[5],
- eqz_preset_10b[i].f_amp[6],
- eqz_preset_10b[i].f_amp[7],
- eqz_preset_10b[i].f_amp[8],
- eqz_preset_10b[i].f_amp[9]];
+ workString = [NSString stringWithFormat:@"%.1f %.1f %.1f %.1f %.1f %.1f %.1f %.1f %.1f %.1f v",
+ eqz_preset_vlc_10b[i].f_amp[0],
+ eqz_preset_vlc_10b[i].f_amp[1],
+ eqz_preset_vlc_10b[i].f_amp[2],
+ eqz_preset_vlc_10b[i].f_amp[3],
+ eqz_preset_vlc_10b[i].f_amp[4],
+ eqz_preset_vlc_10b[i].f_amp[5],
+ eqz_preset_vlc_10b[i].f_amp[6],
+ eqz_preset_vlc_10b[i].f_amp[7],
+ eqz_preset_vlc_10b[i].f_amp[8],
+ eqz_preset_vlc_10b[i].f_amp[9]];
[workValues addObject:workString];
- [workPreamp addObject:[NSString stringWithFormat:@"%1.f", eqz_preset_10b[i].f_preamp]];
+ [workPreamp addObject:[NSString stringWithFormat:@"%1.f", eqz_preset_vlc_10b[i].f_preamp]];
[workTitles addObject:[NSString stringWithUTF8String:preset_list_text[i]]];
[workNames addObject:[NSString stringWithUTF8String:preset_list[i]]];
}
@@ -509,7 +509,7 @@ static bool GetEqualizerStatus(intf_thread_t *p_custom_intf,
- (NSString *)generatePresetString
{
- return [NSString stringWithFormat:@"%.1f %.1f %.1f %.1f %.1f %.1f %.1f %.1f %.1f %.1f",
+ return [NSString stringWithFormat:@"%.1f %.1f %.1f %.1f %.1f %.1f %.1f %.1f %.1f %.1f v",
[o_eq_band1_sld floatValue],
[o_eq_band2_sld floatValue],
[o_eq_band3_sld floatValue],
--
1.9.1
More information about the vlc-devel
mailing list