summaryrefslogtreecommitdiffstats
path: root/macosx/HBAudio.h
diff options
context:
space:
mode:
authordynaflash <[email protected]>2011-05-26 04:27:08 +0000
committerdynaflash <[email protected]>2011-05-26 04:27:08 +0000
commitc7bca57fa504cb0d7ead54c66b760ac7fcabb096 (patch)
tree08dc752ddde337f6fb238bb6c1147917b6f4f0a1 /macosx/HBAudio.h
parentc81154f023af608a50e01ccd8eb312d4d98a85ba (diff)
MacGui: Audio Gain Control initial implementation
- Adds a Circular Slider to implement gain from a range of -5 to +15 which is sane by any reasonable measure. - Note: the circular slider with this range puts the default of 0.0 at the three o'clock position on the slider which is kind of wonky. Any ideas to make it more intuitive are welcome. -The accompanying text field readout is left editable so values beyond the sliders range can be specified manually. - Gain is disabled for any passthru options obviously. - Though it has been in cli and lingui for some time, as a note my tests show that anything above +15 can get distorted quite easily. Of course that is open to opinion depending on source, I have yet to see a complaint about the volume of encoded audio being too high but we leave up to -5 there just for the corner cases. - Any existing presets not specifying gain will use a gain of 0.0 which means of course its unmodified. - Also as a sidenote takes care of blindjimmy's patch https://reviews.handbrake.fr/r/99/ as far as /macosx/HBQueueController.m git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4000 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBAudio.h')
-rw-r--r--macosx/HBAudio.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/macosx/HBAudio.h b/macosx/HBAudio.h
index 08d1b1903..6d243b965 100644
--- a/macosx/HBAudio.h
+++ b/macosx/HBAudio.h
@@ -27,6 +27,7 @@ extern NSString *keyAudioBitrate;
NSDictionary *sampleRate;
NSDictionary *bitRate;
NSNumber *drc;
+ NSNumber *gain;
NSNumber *videoContainerTag;
HBAudioController *controller;
NSMutableArray *codecs;
@@ -40,6 +41,7 @@ extern NSString *keyAudioBitrate;
@property (nonatomic, retain) NSDictionary *sampleRate;
@property (nonatomic, retain) NSDictionary *bitRate;
@property (nonatomic, retain) NSNumber *drc;
+@property (nonatomic, retain) NSNumber *gain;
@property (nonatomic, retain) NSNumber *videoContainerTag;
@property (nonatomic, assign) HBAudioController *controller;