[pool release];
}
- return;
}
// Ensure the list of codecs is accurate
[self setCodec: nil];
}
}
-
- return;
}
- (void) updateMixdowns: (BOOL) shouldSetDefault
{
[self setMixdown: [permittedMixdowns lastObject]];
}
-
- return;
}
- (void) updateBitRates: (BOOL) shouldSetDefault
{
[self setBitRate: [permittedBitRates lastObject]];
}
-
- return;
}
- (id) init
[self setMixdowns: nil];
[self setBitRates: nil];
[super dealloc];
- return;
}
#pragma mark -
{
[self updateBitRates: NO];
}
- return;
}
#pragma mark -
{
[self setMixdown: dict];
}
- return;
}
- (void) setSampleRateFromName: (NSString *) aValue
{
[self setSampleRate: dict];
}
- return;
}
- (void) setBitRateFromName: (NSString *) aValue
{
[self setBitRate: dict];
}
- return;
}
[audioArray release];
[self setVideoContainerTag: nil];
[super dealloc];
- return;
}
- (void) setHBController: (id) aController
/* register that we are interested in changes made to the video container */
[center addObserver: self selector: @selector(containerChanged:) name: HBContainerChangedNotification object: aController];
[center addObserver: self selector: @selector(titleChanged:) name: HBTitleChangedNotification object: aController];
- return;
}
- (void) _clearAudioArray
{
[self removeObjectFromAudioArrayAtIndex: 0];
}
- return;
}
#pragma mark -
[aDict setObject: [[anAudio bitRate] objectForKey: keyAudioBitrate] forKey: [prefix stringByAppendingString: @"Bitrate"]];
}
}
- return;
}
- (void) prepareAudioForJob: (hb_job_t *) aJob
free(audio);
}
}
- return;
}
- (void) prepareAudioForPreset: (NSMutableArray *) anArray
[dict release];
}
}
- return;
}
- (void) addTracksFromQueue: (NSMutableDictionary *) aQueue
}
[self switchingTrackFromNone: nil]; // see if we need to add one to the list
-
- return;
}
// This routine takes the preset and will return the value for the key AudioList
[newAudio release];
}
}
- return;
}
// This matches the FIRST track with the specified prefix, otherwise it uses the defaultIfNotFound value
}
}
}
-
- return;
}
- (void) _ensureAtLeastOneNonEmptyTrackExists
[self addTracksFromPreset: [self _defaultPreset] allTracks: NO];
}
[self switchingTrackFromNone: nil]; // this ensures there is a None track at the end of the list
- return;
}
- (void) addTracksFromPreset: (NSMutableDictionary *) aPreset
{
[self addTracksFromPreset: aPreset allTracks: NO];
[self _ensureAtLeastOneNonEmptyTrackExists];
- return;
}
- (void) addAllTracksFromPreset: (NSMutableDictionary *) aPreset
{
[self addTracksFromPreset: aPreset allTracks: YES];
[self _ensureAtLeastOneNonEmptyTrackExists];
- return;
}
- (BOOL) anyCodecMatches: (int) aCodecValue
[newAudio setDrc: [NSNumber numberWithFloat: 0.0]];
[newAudio setGain: [NSNumber numberWithFloat: 0.0]];
[newAudio release];
- return;
}
#pragma mark -
[self removeObjectFromAudioArrayAtIndex: index];
}
[self switchingTrackFromNone: nil]; // see if we need to add one to the list
- return;
}
- (void) switchingTrackFromNone: (HBAudio *) noLongerNoneTrack
{
[self addNewAudioTrack];
}
- return;
}
// This gets called whenever the video container changes.
{
[audioObject setVideoContainerTag: [self videoContainerTag]];
}
- return;
}
- (void) titleChanged: (NSNotification *) aNotification
{
[self _ensureAtLeastOneNonEmptyTrackExists];
}
- return;
}
#pragma mark -
{
[audioArray insertObject: audioObject atIndex: index];
- return;
}
- (void) removeObjectFromAudioArrayAtIndex: (unsigned int) index
{
[audioArray removeObjectAtIndex: index];
- return;
}
@end