IOS AUSampler audiounit - a problem with a file with EXS audio files?

Following the Apple docs here , I was able to successfully download the GarageBand EXS Sampler tool in AUSampler in my iOS application, recreating, for example, the following path in my application directory:

/Sampler Files/Funk Horn Section/nameofaudio.aif 

iOS searches for an audio file in the following directory:

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

However, this does not work when I create my own EXS file. How is it known to delete the first part of the file path if GarageBand ?? I even tried to create my EXS tool and even created in the same GarageBand directory, but that doesn't matter:

 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 also tried to manually edit the file path in the exs file using a text editor, but nothing works.

The EXS tool works great in logic. But my application cannot find it.

Any help is greatly appreciated.

+3
source share
1 answer

The key point here is that your source sampler file must reference samples that come from any of these trigger directory structures in order to work properly:

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

Your sample must exist in the directory path with one of these triggers in it, and then the path must match the same in your package. iOS searches for one of these triggers, then removes everything before it and uses it as a new search path in the kit to find your sample. It is difficult, but it will work this way if you make sure that everything is in order.

I struggled with this because my samples were stored in places without any of these keywords, and therefore they would never find them.

+1
source

Source: https://habr.com/ru/post/1394697/


All Articles