Swift 音频套件装饰音频
我正在制作音频编辑应用程序,我想修剪我的音频。对于音频编辑,我使用AudioKit框架。但我在教程和示例中找不到如何使用此框架修剪音频?异步导出允许设置开始和结束示例:Swift 音频套件装饰音频,swift,audiokit,Swift,Audiokit,我正在制作音频编辑应用程序,我想修剪我的音频。对于音频编辑,我使用AudioKit框架。但我在教程和示例中找不到如何使用此框架修剪音频?异步导出允许设置开始和结束示例: 非常感谢。这就是我要找的。 /// Exports Asynchronously to a new AKAudiofile with trimming options. /// ... /// - fromSample: start range in samples /// - toSample: end range
非常感谢。这就是我要找的。
/// Exports Asynchronously to a new AKAudiofile with trimming options.
///
...
/// - fromSample: start range in samples
/// - toSample: end range time in samples
...
public func exportAsynchronously(name: String,
baseDir: BaseDirectory,
exportFormat: ExportFormat,
fromSample: Int64 = 0,
toSample: Int64 = 0,
callback: @escaping AsyncProcessCallback) {
let fromFileExt = fileExt.lowercased()