The maximum number of open files is a iOS/Unix system limitation: MyIphone:~ mobile$ ulimit -n 256
The library you are calling into cannot modify this system limit itself. I do not know if this can be modified by running apps or not. You will need to trim down your sound bank files to less than 256 samples. Regarding memory limits, there is no way to know this - the amount depends on how much is already allocated by the total system. iOS allocates memory up from the total memory pool available, until it can’t, and then it kills your app. No API to know how much is left or whether you will hit the boundary. -DS > On Jul 19, 2017, at 7:07 AM, Ramon Poca Cos <[email protected]> wrote: > > Hi there, > > I’ve been hitting different problems with AVAudioUnitSampler using both EXS24 > and SF2 files. > For EXS24 I’ve got a kAudio_TooManyFilesOpenError due to the number of .wav > files of the sample. > For SF2 I submitted a radar about crashes but as I was using AudioKit and > Apple won’t check it until I reproduce it with basic CoreAudio. > > So, is there any documentation at all about memory/file size/files open > limits for AVAudioSampler? And related, what sample memory size can I use on, > say, a basic iPhone 5S without running into trouble? > > -- > Ramon Poca - [email protected] <mailto:[email protected]> > > CONDUCTR by PTCHWRKS > Made with ♥ in Barcelona > ------------------------- > > Information in this email including any attachments may be privileged, > confidential and is intended exclusively for the addressee. The views > expressed may not be official policy, but the personal views of the > originator. If you have received it in error, please notify the sender by > return email and delete it from your system. You should not reproduce, > distribute, store, retransmit, use or disclose its contents to anyone. Please > note we reserve the right to monitor all email communication through our > internal and external networks. Conductr and the Conductr logo are trade > marks of PATCHWORKS makes tendertech S.L. registered in the EU, Spain and > other countries. > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Coreaudio-api mailing list ([email protected] > <mailto:[email protected]>) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/coreaudio-api/douglas_scott%40apple.com > > <https://lists.apple.com/mailman/options/coreaudio-api/douglas_scott%40apple.com> > > This email sent to [email protected] <mailto:[email protected]>
_______________________________________________ Do not post admin requests to the list. They will be ignored. Coreaudio-api mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/coreaudio-api/archive%40mail-archive.com This email sent to [email protected]
