草庐IT

AKMIDISampler

全部标签

iOS AKMIDISampler 没有音频输出

我在iOS(11.3)上使用带有音色字体的AKMIDISampler,但我无法获得音频输出。目前,设置是最小的:midiSampler=AKMIDISampler()samplerVolume=AKBooster(midiSampler)mixer.connect(input:samplerVolume)letbundlePath=Bundle.main.bundlePathletsoundPath=("\(bundlePath)/Sounds/GigaPiano")do{_=tryself.midiSampler.loadSoundFont(soundPath,preset:0,ba

swift - AudioKit 4.2 将自定义音序器连接到 AKMIDISampler 的端点

从4.1升级到4.2打破了我们的音序器和AKMIDISampler之间的连接。似乎该端口现在是私有(private)的(这是有道理的),但我如何连接到它? 最佳答案 好吧,我有一个通过扩展的快速修复,但如果有任何AK人有更好的建议,我会洗耳恭听!(我还对传递给“handle(event:)”的“事件”添加了健全性检查,因为我们有internalData.countimportFoundationimportAudioKitextensionAKMIDISampler{privatefunchandle(event:AKMIDIEve