Swift is not an RT-safe language. All code executed inside the render callback must be RT safe. No disk i/o, no blocking synchronization, no objective C, no Swift.
Will it work if you use Swift? Probably. Quite possibly even 99% of the time. Doesn't make it OK. On Wed, Mar 15, 2017 at 5:25 AM, Dave O'Neill <[email protected]> wrote: > Hi, > > Is it safe to call Swift functions from the audio render callback? I know > objc_msgSend can take a lock, is this also concern with swift functions? > > Dave > > _______________________________________________ > 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/ > paul%40linuxaudiosystems.com > > This email sent to [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]
