OK, I'm trying to used this code to export the movie to an audio file but it doesn't work. I would really appreciate some help with this. Thanks.
// The following line disables non-audio tracks
doExportByDisablingTracks();
ComponentDescription description;
description.componentType = 'spit';
description.componentSubType = 'AIFF';
description.componentManufacturer = 'soun';
description.componentFlags = 0;
description.componentFlagsMask = 0;
Component c = FindNextComponent(0, &description);
MovieExportComponent exporter = OpenComponent(c);
QTAtomContainer atomSettings;
ComponentResult err = MovieExportGetSettingsAsAtomContainer (exporter, &atomSettings);
NSMutableDictionary *settings = [[NSMutableDictionary alloc] init];
[settings setObject:[NSNumber numberWithBool:YES] forKey:QTMovieExport];
[settings setObject:[NSNumber numberWithLong:kQTFileTypeAIFF] forKey:QTMovieExportType];
[settings setObject:[NSNumber numberWithLong:SoundMediaType] forKey:QTMovieExportManufacturer];
[settings setObject:[NSData dataWithBytes:*atomSettings length:GetHandleSize(atomSettings)]
forKey:QTMovieExportSettings];
if (![qtMovie writeToFile
"~/Movies/movie.aiff" withAttributes:settings])
NSLog(@"\nCould not save.\n");
}