From 9edd509f7e84d131107f523219032f221a355e56 Mon Sep 17 00:00:00 2001 From: dynaflash Date: Wed, 19 Dec 2007 19:57:44 +0000 Subject: MacGui: DRC slider modifications - Use the float value field rounded to 100ths for the actual drc value passed to libhb (previously was using float down to millionths which was obscured from the user by the size of the value field). - move -audDRCSliderChanged method to where the other audio control methods are in controller.mm git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1136 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- macosx/Controller.mm | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/macosx/Controller.mm b/macosx/Controller.mm index 9f3520b3e..88d700629 100644 --- a/macosx/Controller.mm +++ b/macosx/Controller.mm @@ -1523,8 +1523,7 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It job->abitrate = [[fAudBitratePopUp selectedItem] tag]; /* Dynamic Range Compression */ - job->dynamic_range_compression = [fAudDrcSlider floatValue]; - + job->dynamic_range_compression = [fAudDrcField floatValue]; /* set vfr according to the Picture Window */ if ([fPictureController vfr]) @@ -2346,13 +2345,6 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It [self twoPassCheckboxChanged: sender]; } -- (IBAction) audioDRCSliderChanged: (id) sender -{ - [fAudDrcField setStringValue: [NSString stringWithFormat: @"%f", [fAudDrcSlider floatValue]]]; - [self customSettingUsed: sender]; -} - - /* Method to determine if we should change the UI To reflect whether or not a Preset is being used or if the user is using "Custom" settings by determining the sender*/ @@ -3007,6 +2999,12 @@ the user is using "Custom" settings by determining the sender*/ } +- (IBAction) audioDRCSliderChanged: (id) sender +{ + [fAudDrcField setStringValue: [NSString stringWithFormat: @"%.2f", [fAudDrcSlider floatValue]]]; + [self customSettingUsed: sender]; +} + - (IBAction) subtitleSelectionChanged: (id) sender { if ([fSubPopUp indexOfSelectedItem] == 0) -- cgit v1.2.3