I'm trying to use AppleSampler
which uses AVAudioUnitSampler
to load a EXS24
file that references ~400 .caf
files.
The error I'm receiving is:
FileSample.cpp:52:LoadFromURL: about to throw -42: FileSample::LoadFromURL: ExtAudioFileOpenURL
SampleManager.cpp:434:AddSample: Failed to load sample ...: error -42
SampleManager.cpp:435:AddSample: about to throw -42: Failed to load sample
Fatal error: 'try!' expression unexpectedly raised an error: Error Domain=NSOSStatusErrorDomain Code=-42 "(null)"
Where -42 means: kAudio_TooManyFilesOpenError
I know there is a lot of files, but I need to load all those samples for an instrument.
I've tried using .aupreset
file instead of EXS24
but the results were the same.
Is there a way to tell AppleSampler (AVAudioUnitSampler)
to lazy load those files, or a way for me to easily combine those ~400 .caf
files into one big file that can be referenced by my EXS24
file, or some other options I'm not seeing?