Skip to content

Instantly share code, notes, and snippets.

@elfenlaid
Created March 5, 2013 18:54
Show Gist options
  • Save elfenlaid/5093060 to your computer and use it in GitHub Desktop.
Save elfenlaid/5093060 to your computer and use it in GitHub Desktop.
AVMutableAudioMix *exportAudioMix = [AVMutableAudioMix audioMix];
exportAudioMix.inputParameters = parameters;
AVAssetExportSession *export =
[[AVAssetExportSession alloc] initWithAsset:mixComposition
presetName:AVAssetExportPresetAppleM4A];
export.outputFileType = @"com.apple.m4a-audio";
export.outputURL = outputFileUrl;
export.audioMix = exportAudioMix;
[export exportAsynchronouslyWithCompletionHandler:
^(void){ NSLog(@"Tadaaa!"; }
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment