diff options
author | Damiano Galassi <[email protected]> | 2015-10-25 07:02:12 +0100 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2015-10-25 07:02:12 +0100 |
commit | c88aca690baa75be4f71207222f84222c27104f8 (patch) | |
tree | 9008ba54d6824f27375b0c99c4d3b4d4559d9593 /macosx/HBAudioTrack.m | |
parent | 054b9d9faf5334cb6c47b31784c87406b51e19fa (diff) |
MacGui: switch the audio table to a view-based one.
Diffstat (limited to 'macosx/HBAudioTrack.m')
-rw-r--r-- | macosx/HBAudioTrack.m | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/macosx/HBAudioTrack.m b/macosx/HBAudioTrack.m index a30f7eafb..7a6eb725e 100644 --- a/macosx/HBAudioTrack.m +++ b/macosx/HBAudioTrack.m @@ -563,8 +563,12 @@ static NSMutableArray *masterBitRateArray = nil; return retval; } -#pragma mark - -#pragma mark Bindings Support +#pragma mark - Bindings Support + +- (NSArray *)masterTrackArray +{ + return self.dataSource.masterTrackArray; +} - (BOOL)enabled { @@ -635,6 +639,14 @@ static NSMutableArray *masterBitRateArray = nil; return retval; } +- (void)setNilValueForKey:(NSString *)key +{ + if ([key isEqualToString:@"drc"] || [key isEqualToString:@"gain"]) + { + [self setValue:@0 forKey:key]; + } +} + + (NSSet *)keyPathsForValuesAffectingValueForKey:(NSString *)key { NSSet *retval = nil; |