• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Fwd: Swift and CoreAudio
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: Swift and CoreAudio


  • Subject: Fwd: Swift and CoreAudio
  • From: Daniel Hams <email@hidden>
  • Date: Mon, 20 Jul 2015 16:06:15 +0100

Oops, forgot to include the list. Excuse the second message Waverly.

---------- Forwarded message ----------
From: Daniel Hams <email@hidden>
Date: Mon, Jul 20, 2015 at 4:05 PM
Subject: Re: Swift and CoreAudio
To: Waverly Edwards <email@hidden>


> Could it be because of documentation, lack of Swift-CoreAudio examples, translation of existing programs is challenging, the evolving nature of the language or maybe a combination of the above?

My personal avoidance of Swift for CoreAudio is based on the
understanding that you'll be okay using it for things like off-line
sound processing and/or setting up your data structures - but there
are invariably parts of any audio processing system that have to be
written in a real time manner.

Unless something has changed recently, I believe that Swift suffers
the same predictability issues vis-a-vis real time that Obj-C has.

By real time I mean avoiding mutexes and blocking system calls on the
real time hot audio path - and I don't believe that Obj-C/Swift has
any of those guarantees. (e.g. as a rule I like to avoid malloc/free
on the hot path - does Obj-C/Swift guarantee that?).

It's possible you could get by using the higher level primitives that
hide the actual audio callbacks from you like audio file playing - but
for anything deeper than that you're pretty much still in the realm of
C / C++.

D
 _______________________________________________
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


References: 
 >RE: Swift and CoreAudio (From: Waverly Edwards <email@hidden>)

  • Prev by Date: RE: Swift and CoreAudio
  • Next by Date: AU base class for Instrument/Effect
  • Previous by thread: RE: Swift and CoreAudio
  • Next by thread: Re: Coreaudio-api Digest, Vol 12, Issue 125
  • Index(es):
    • Date
    • Thread