小编Ali*_*ğlu的帖子

没有名为 AKNode/AKToggleable 的类型或协议

我正在尝试扩展 AKNode 和 AKToggelable,此错误出现在 Project-Swift.h 文件中

有什么方法可以做到这一点?

我的班级是

class AKCustom: AKNode, AKToggleable, AKComponent, AKInput {
public typealias AKAudioUnitType = AKBalancerDeplikeAudioUnit

public static let ComponentDescription = AudioComponentDescription(mixer: "dpba")

private var internalAU: AKAudioUnitType?


open dynamic var isStarted: Bool {
    return internalAU?.isPlaying() ?? false
}

public init( _ input: AKNode? = nil) {
    _Self.register()
    super.init()
    AVAudioUnit._instantiate(with: _Self.ComponentDescription) { [weak self] avAudioUnit in

        self?.avAudioNode = avAudioUnit
        self?.internalAU = avAudioUnit.auAudioUnit as? AKAudioUnitType

        input?.connect(to: self!)
    }
}

open func start() {
    internalAU?.start()
}

open func stop() …
Run Code Online (Sandbox Code Playgroud)

ios swift audiokit

5
推荐指数
1
解决办法
344
查看次数

标签 统计

audiokit ×1

ios ×1

swift ×1