summaryrefslogtreecommitdiffstats
path: root/macosx/HBAudioTrackPreset.h
diff options
context:
space:
mode:
authorritsuka <[email protected]>2014-08-04 07:12:12 +0000
committerritsuka <[email protected]>2014-08-04 07:12:12 +0000
commit3fdfc2d020d300bee991b4aa5c931bb9e33c3c10 (patch)
tree88c6296081a2076d71fe59a67fd272995889e199 /macosx/HBAudioTrackPreset.h
parent49a49b9d4664b33dc3d7a723fe421a7b695e2052 (diff)
MacGui: Adds a new sheet for audio defaults (presets), uses the same preset keys as the LinGui.
The built-in presets still use the languages from the Audio preferences. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6264 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBAudioTrackPreset.h')
-rw-r--r--macosx/HBAudioTrackPreset.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/macosx/HBAudioTrackPreset.h b/macosx/HBAudioTrackPreset.h
new file mode 100644
index 000000000..49abe9820
--- /dev/null
+++ b/macosx/HBAudioTrackPreset.h
@@ -0,0 +1,53 @@
+//
+// HBAudioEncoder.h
+// HandBrake
+//
+// Created by Damiano Galassi on 30/07/14.
+//
+//
+
+#import <Foundation/Foundation.h>
+
+/**
+ * HBAudioTrackPreset
+ * a KVO enabled class used in the Audio Defaults panels,
+ * automatically validates the values.
+ */
+@interface HBAudioTrackPreset : NSObject
+
+/**
+ * track properties.
+ */
+@property (nonatomic, readwrite) int encoder;
+@property (nonatomic, readwrite) int mixdown;
+@property (nonatomic, readwrite) int sampleRate;
+@property (nonatomic, readwrite) int bitRate;
+
+@property (nonatomic, readwrite) int gain;
+@property (nonatomic, readwrite) int drc;
+
+/**
+ * Arrays of possible options for the track properties.
+ */
+@property (nonatomic, readonly) NSArray *encoders;
+@property (nonatomic, readonly) NSArray *mixdowns;
+@property (nonatomic, readonly) NSArray *samplerates;
+@property (nonatomic, readonly) NSArray *bitrates;
+
+@end
+
+/**
+ * A series of value trasformers to bridge the libhb enums
+ * to the textual rapresentations used in the interface.
+ */
+@interface HBEncoderTrasformer : NSValueTransformer
+@end
+
+@interface HBMixdownTrasformer : NSValueTransformer
+@end
+
+@interface HBSampleRateTrasformer : NSValueTransformer
+@end
+
+@interface HBIntegerTrasformer : NSValueTransformer
+@end \ No newline at end of file