diff options
author | dynaflash <[email protected]> | 2007-12-19 19:57:44 +0000 |
---|---|---|
committer | dynaflash <[email protected]> | 2007-12-19 19:57:44 +0000 |
commit | 9edd509f7e84d131107f523219032f221a355e56 (patch) | |
tree | 3ad259eb26d082b52ccd2cf20a81ccaa8e57b1f5 /macosx | |
parent | abe87eb4f8f239a6f950d8a549a5d9b75bc36365 (diff) |
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
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/Controller.mm | 16 |
1 files 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) |