Re: EXS24/SF2 sample limits on iOS
Re: EXS24/SF2 sample limits on iOS
- Subject: Re: EXS24/SF2 sample limits on iOS
- From: Ramon Poca Cos <email@hidden>
- Date: Thu, 20 Jul 2017 12:21:07 +0200
Setting a higher ulimit did the trick (Even though rlim_max should not be
trusted. A 10,000 limit was accepted, a 100,000 was ignored).
func application(_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey:
Any]?) -> Bool {
// Override point for customization after application launch.
var limit:rlimit = rlimit()
getrlimit(RLIMIT_NOFILE, &limit)
print("Ulimit before \(limit.rlim_cur)")
print("Max allowed \(limit.rlim_max)")
limit.rlim_cur = 10000
setrlimit(RLIMIT_NOFILE, &limit)
getrlimit(RLIMIT_NOFILE, &limit)
print("Ulimit after \(limit.rlim_cur)")
return true
}
The -42 error is gone. Now I have missing notes and this error. Something wrong
with the EXS maybe?
Ulimit before 256
Max allowed 9223372036854775807
Ulimit after 10000
2017-07-20 12:17:47.520406+0200 AudioUnitSF2Crash[15937:8112071] 1404:
VoiceZone::GetControlDestination: invalid component ID: 0x50000100
2017-07-20 12:17:48.309886+0200 AudioUnitSF2Crash[15937:8112071] 1404:
VoiceZone::GetControlDestination: invalid component ID: 0x50000100
2017-07-20 12:17:48.495654+0200 AudioUnitSF2Crash[15937:8112071] 1404:
VoiceZone::GetControlDestination: invalid component ID: 0x50000100
PS: Another option I looked into would be to use a consolidated .caf file (what
Garageband uses), but we haven’t found a way to make Logic generate that, and
the documentation and tooling for EXS and consolidated cafs is nonexistant
(though I think a consolidated caf is just a concatenation of samples and EXS
points at segments).
--
Ramon Poca - email@hidden
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.
Encès 20 07 de 2017 a 9:38:51, Philippe Wicker (email@hidden) va escriure:
This is how it can be done With MacOS:
https://stackoverflow.com/questions/3166783/how-to-increase-the-limit-of-maximum-open-files-in-c-on-mac-os-x/3214064#3214064
Maybe you can use the same APIs with iOS?
On 20 Jul 2017, at 00:48, Paul Davis <email@hidden> wrote:
On OSX/MacOS, the limit can be modified by an application subject to limits set
by the system administrator and hard limits in the kernel ((sometimes). I have
no idea if iOS exports the same API.
On Wed, Jul 19, 2017 at 2:14 PM, Douglas Scott <email@hidden> wrote:
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@hidden> 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@hidden
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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden