首页 > 解决方案 > 基于 Audiokit 的应用程序无法处理一些流行的声音字体

问题描述

我正在尝试使用 AK sdk 构建钢琴应用程序。我注意到我的应用程序以及其他基于 AK 的应用程序无法处理一些流行的 sf2 文件,例如以下预设中的三角钢琴在非 AK 合成器应用程序中运行良好:http: //schristiancollins.com/soundfonts /GeneralUser_GS_1.44-SoftSynth.zip

可能是什么原因?

编码:

sampler = AKAppleSampler()

do {
  try sampler.loadSoundFont("GeneralUser GS FluidSynth", preset: 0 , bank: 0)
  sampler.amplitude = 20

  AudioKit.output = sampler
  try AudioKit.start()

} catch {

}

标签: audiokitsoundfont

解决方案


推荐阅读