diff options
author | ritsuka <[email protected]> | 2015-01-31 17:12:11 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2015-01-31 17:12:11 +0000 |
commit | c81e2df474f6181b19c20423e454c2f1067d12e5 (patch) | |
tree | ce48f945796827b76de9d261247ca4c2130c32e1 /macosx/HBAudioTrack.m | |
parent | 32e65ab4d0c0dd32da51322aaa2b170fcf23113d (diff) |
MacGui: add a HBAudioTrackDataSource protocol to simplify HBAudio interface.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6844 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBAudioTrack.m')
-rw-r--r-- | macosx/HBAudioTrack.m | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/macosx/HBAudioTrack.m b/macosx/HBAudioTrack.m index 7b35411b4..047770fe1 100644 --- a/macosx/HBAudioTrack.m +++ b/macosx/HBAudioTrack.m @@ -363,13 +363,13 @@ static NSMutableArray *masterBitRateArray = nil; { self.sampleRate = self.sampleRates[0]; // default to Auto } - if ([self.controller.noneTrack isEqual: oldValue]) + if ([self.dataSource.noneTrack isEqual: oldValue]) { - [self.controller switchingTrackFromNone: self]; + [self.dataSource switchingTrackFromNone: self]; } - if ([self.controller.noneTrack isEqual: self.track]) + if ([self.dataSource.noneTrack isEqual: self.track]) { - [self.controller settingTrackToNone: self]; + [self.dataSource settingTrackToNone: self]; } } [oldValue release]; @@ -388,7 +388,7 @@ static NSMutableArray *masterBitRateArray = nil; [_mixdown autorelease]; _mixdown = [mixdown retain]; [self updateBitRates: YES]; - [[NSNotificationCenter defaultCenter] postNotificationName: HBMixdownChangedNotification object: self]; + [[NSNotificationCenter defaultCenter] postNotificationName: HBMixdownChangedNotification object: self.dataSource]; } - (void)setSampleRate:(NSDictionary *)sampleRate @@ -404,7 +404,7 @@ static NSMutableArray *masterBitRateArray = nil; - (void) setTrackFromIndex: (int) aValue { - self.track = [self.controller.masterTrackArray dictionaryWithObject: @(aValue) + self.track = [self.dataSource.masterTrackArray dictionaryWithObject: @(aValue) matchingKey: keyAudioTrackIndex]; } @@ -485,7 +485,7 @@ static NSMutableArray *masterBitRateArray = nil; - (BOOL) enabled { - return (nil != self.track) ? (![self.track isEqual: self.controller.noneTrack]) : NO; + return (nil != self.track) ? (![self.track isEqual: self.dataSource.noneTrack]) : NO; } - (BOOL) mixdownEnabled |