iOS的AUSampler audiounit - 与EXS音频文件的文件路径问题? [英] iOS AUSampler audiounit - file path issue with EXS audio files?

查看:540
本文介绍了iOS的AUSampler audiounit - 与EXS音频文件的文件路径问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

继苹果文档的这里我已经能够成功地通过重新创建我的应用程序目录中加载的GarageBand EXS采样器乐器到AUSampler在我的iOS应用程序,例如以下路径:

  /采样文件/芬克牛角梳/ nameofaudio.aif

iOS版会在以下目录中的音频文件:

<$p$p><$c$c>file:///Library/Application%20Support/GarageBand/Instrument%20Library/Sampler/Sampler%20Files/Funk%20Horn%20Section/'

然而,当我创造我自己的EXS文件,这是行不通的。它怎么知道删除的文件路径,如果GarageBand中的第一部分?我甚至尝试创建我的EXS乐器,甚至在同一个GarageBand的目录中创建,但它没有什么区别:

 无法找到样本001%20VirusTI%20-%20SeaThr%2314A1B3.aif  - file:///macSSD/Library/Application%20Support/GarageBand/Instrument%20Library/Sampler/Sampler%20Files/VirusTI%20-%20SeaThreeHS%20v2/'

我也试过手动编辑在EXS文件的文件路径使用文本编辑器,但没有工作。

该EXS乐器起着逻辑罚款。但是,我的应用程序无法找到它。

任何帮助非常AP preciated。


解决方案

这里的关键是,你的源文件的采样有引用来自这些触发目录结构的样本,以正常工作:

/声音/
/采样文件/
/ Apple循环/
/ EXS厂样品/
/ SoundFont音色采样/

您样品具有在目录路径存在在它那些触发器之一,然后在路径具有相匹配的完全相同的组合中的。 iOS的寻找那些触发器之一,那么在这之前删除一切,并使用它作为捆绑新的搜索路径找到你的样品。
这是棘手的,但它会以这种方式工作,如果你确保一切正常。

我这个打了,因为我的样品被存放在地方没有任何这些关键字的,所以它永远不会找到他们。

Following the Apple docs here I have been able to successfully load a GarageBand EXS sampler instrument into AUSampler in my iOS app by recreating, for example the following path within my app directory:

/Sampler Files/Funk Horn Section/nameofaudio.aif

iOS looks for the audio file in the following directory:

file:///Library/Application%20Support/GarageBand/Instrument%20Library/Sampler/Sampler%20Files/Funk%20Horn%20Section/'

However this doesn't work when I create my own EXS file. How does it know to remove the first part of the filepath if GarageBand?? I've even tried creating my EXS instrument and even created in the same GarageBand directory but it makes no difference:

Failed to locate sample '001%20VirusTI%20-%20SeaThr%2314A1B3.aif -- file:///macSSD/Library/Application%20Support/GarageBand/Instrument%20Library/Sampler/Sampler%20Files/VirusTI%20-%20SeaThreeHS%20v2/'

I've also tried manually editing the file path in the exs file with a text editor but nothing works.

The EXS instrument plays fine in logic. But my app can't find it.

Any help greatly appreciated.

解决方案

The key here is that your source sampler file has to reference samples that come from any of these 'trigger' directory structures to work properly:

"/Sounds/" "/Sampler Files/" "/Apple Loops/" "/EXS Factory Samples/" "/SoundFont Samples/"

Your sample has to exist in a directory path with one of those triggers in it, and then the path has to match the exact same in your bundle. iOS looks for one of those triggers, then deletes everything before that, and uses that as the new search path in the bundle to find your sample. It is tricky, but it will work this way if you make sure everything is in order.

I fought with this because my samples were stored in places without any of those keywords, and so it would never find them.

这篇关于iOS的AUSampler audiounit - 与EXS音频文件的文件路径问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆