Could you Solve this problem?? We don't know Which is the problem of EXS file Or the problem of "SampleManager.cpp:440" ??
We are using the EXS file AudioKit/CookBook "nes-syn1.exs" file.
When we tried loading instrument using AVAudioUnitSampler.loadInstrumentAtURL from Swift.
The Problem Occurs.
SampleManager.cpp:440 Failed to locate sample 'nessyn1.wav -- file:///Users/jeffcooper/Music/Logic/EXS24designs/Sounds/'
IntroScene;;initPeterJohnAudioEngine();;[line:1613];;filePath Exists:/private/var/containers/Bundle/Application/2956DC83-C3D9-4C5E-BB63-EA3262DE99E9/PeterJohn-iphoneos.app/PeterJohnAudios/nes-syn1.exs
IntroScene;;initPeterJohnAudioEngine();;[line:1623];;fileURL is Not Nil:file:///private/var/containers/Bundle/Application/2956DC83-C3D9-4C5E-BB63-EA3262DE99E9/PeterJohn-iphoneos.app/PeterJohnAudios/nes-syn1.exs
2022-11-05 21:11:06.055501+0900 PeterJohn-iphoneos[29082:5071722] SampleManager.cpp:440 Failed to locate sample 'nessyn1.wav -- file:///Users/jeffcooper/Music/Logic/EXS24designs/Sounds/'
2022-11-05 21:11:06.055652+0900 PeterJohn-iphoneos[29082:5071722] [default] SampleManager.cpp:441 about to throw -43: Failed to locate sample
2022-11-05 21:11:06.055806+0900 PeterJohn-iphoneos[29082:5071722] GlobalState.cpp:500 GlobalState::LoadEXS24Instrument: Load failed
2022-11-05 21:11:06.057381+0900 PeterJohn-iphoneos[29082:5071722] [avae] AVAEInternal.h:109 [AVAudioUnitSampler.mm:144:-[AVAudioUnitSampler loadInstrumentAtURL:error:]: (error): error -43
IntroScene;;initPeterJohnAudioEngine();;[line:1635];;****************Failed to Load instrument[ -1 ].
Succeeded to write.
IntroScene;;initPeterJohnAudioEngine();;[line:1640];;****************Succeeded to Start AudioEngine[ -1 ].
This is not the place to have programmers solve problems for you, it is only for bugs in the AudioKit Cookbook, which you have not demonstrated. FWIW, this looks a simple file not found bug.
macOS Version(s) Used to Build
macOS 12 Monterey
Xcode Version(s)
Xcode 13.2.1
Description
Could you Solve this problem?? We don't know Which is the problem of EXS file Or the problem of "SampleManager.cpp:440" ??
We are using the EXS file AudioKit/CookBook "nes-syn1.exs" file. When we tried loading instrument using AVAudioUnitSampler.loadInstrumentAtURL from Swift. The Problem Occurs. SampleManager.cpp:440 Failed to locate sample 'nessyn1.wav -- file:///Users/jeffcooper/Music/Logic/EXS24designs/Sounds/'