我正在尝试扩展 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)