AKManager Audiokit crash: HALB_IOBufferManager_Client::GetIO



我运行的是XCode 12.4和iOS 13.7。下面这个简单的类

import AudioKit
import UIKit

class SoundManager {
private var sampler: AKAppleSampler
private var booster: AKBooster
private var reverb: AKReverb
private let mixer: AKMixer

required init() {
sampler = AKAppleSampler()
booster = AKBooster(sampler, gain: 3.0)
reverb = AKReverb(booster)
mixer = AKMixer()
}

func setup() {
reverb.loadFactoryPreset(.largeRoom)
mixer.connect(input: reverb)        
AKManager.output = mixer
try? AKManager.start()
}
}

调用时

let soundManager = SoundManager()
soundManager.setup()

崩溃

HALB_IOBufferManager_Client::GetIOBuffer:流索引溢出AQME.h:254:IOProcFailure: AQDefaultDevice(1):输出流0:AQMEIO_HAL.cpp:1774:IOProc: EXCEPTION抛出(-50):错误! = 0

这是在iOS 13.7模拟器上崩溃的东西,但在一些14。X版本不会产生问题。任何想法?

看起来iOS 12也会出现这个问题&13在模拟器上,但在设备上运行时工作良好。源

相关内容

  • 没有找到相关文章

最新更新