Documentation
¶
Overview ¶
Command audiomix demonstrates editing audio with AVAudioMix.
It loads an audio or video file, applies volume ramp effects using AVMutableAudioMix, and either previews the result with AVPlayer or exports a new file with the mix baked in via AVAssetReader/Writer.
This example is a Go port of Apple's "Editing Spatial Audio with an Audio Mix" sample, adapted to use the general-purpose AVAudioMix APIs available through the avfoundation bindings.
Usage:
audiomix preview [--duration <seconds>] <file> audiomix bake [--fade-in <seconds>] [--fade-out <seconds>] --output <outfile> <file>
Examples:
audiomix preview --duration 10 recording.mov audiomix bake --fade-in 2 --fade-out 3 --output mixed.mov recording.mov
Click to show internal directories.
Click to hide internal directories.