Re: Real-time buffer playback in Swift?
Re: Real-time buffer playback in Swift?
- Subject: Re: Real-time buffer playback in Swift?
- From: Charles Constant <email@hidden>
- Date: Tue, 16 Sep 2014 12:41:56 -0700
> the fact that you can't use a swift function for the render callback given the API design
> does seem indicative of the sort of message apple may want to send here ....
Swift may well be inherently inappropriate for render callbacks, but I imagine Swift's inability to create a CFunctionPointers has far-enough reaching effects that some of them wouldn't involve performance.
> I'm puzzled why you think this is possible. Last time I read about
> this, Apple's position was that realtime (i.e. low latency) audio
> still required C/C++.
Well, evidently it's because *I* hadn't read that : ) If that's their position, I'm glad I stopped trying. I'm quite sure queuing up scheduled segments, and handling menial tasks in the completion callbacks, should be okay in the *new* API though, since the WWDC examples were all Obj-C and presumably Swift performance should wind up comparable to Obj-C.
_______________________________________________
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