Re: Swift and DSP/Audio
Re: Swift and DSP/Audio
- Subject: Re: Swift and DSP/Audio
- From: Gregory Wieber <email@hidden>
- Date: Wed, 04 Jun 2014 11:25:18 -0700
Hmm, I'd like to check out block interoperability -- something like the amazing audio engine, which provides block based callbacks, may work nicely with swift if blocks can be passed from swift...
Haven't gotten that far yet myself.
Sent from my iPhone
> On Jun 4, 2014, at 8:17 AM, Rolf Wöhrmann <email@hidden> wrote:
>
> Hi
>
> surely hand written assembler is best ;-) but seriously I don't think that Swift can beat C/C++.
>
> There's a version of the Accelerate framework and the vDSP functions have Swift versions. However, these use the bridging datatypes like CConstPointer<CFloat> which in fact point to your good old C float buffer.
>
> Anyway, I wanted to make a test app, but currently it breaks due to the fact that you cannot set a Swift func as the AU render callback:
>
> https://devforums.apple.com/message/973731#973731
>
> Of course, you can install the render callback via C and then call a Swift func via bridging, but that's not nice.
>
> The other question is:
>
> You could do some floating point number crunching bench apps avoiding the AU stuff, but to what extent Swift is fully optimized as it is right now?
>
> If anybody has some further insight, I would be interested too.
>
> Best
> Rolf
>
>
>> On 04 Jun 2014, at 17:05, T.J. Usiyan <email@hidden> wrote:
>>
>> Hello,
>>
>> I would like to know if Swift is hoped/intended to be used for signal processing. I have read that the desire is not to deprecate Obj-C/C++/C with Swift which is nice but I wouldn't mind trying a language other than C/C++ for Audio.
>>
>> TJ
>> _______________________________________________
>> 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