• 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
CoreAudio vs. AVAudioEngine
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CoreAudio vs. AVAudioEngine


  • Subject: CoreAudio vs. AVAudioEngine
  • From: Beinan Li via Coreaudio-api <email@hidden>
  • Date: Fri, 2 Aug 2019 17:01:56 +0800

Hello CoreAudio,

I'm seeking advice on migrating from CoreAudio/ObjC++ to
AVAudioEngine/Swift/ObjC: should I do it or when should I start worry?

I have a legacy macOS/iOS project that uses CoreAudio heavily, mainly just
AudioQueue, but right now on Mojave / iOS 12 things start to breakdown or
throw "deprecated" warnings at me, e.g.:

    AudioSampleType is deprecated: The concept of canonical formats is
deprecated.

And I need to at least bring in AVFoundation. This prompts me to shop
around for other solutions.

My project is not a synth/FX app. It would only use metering/spectrogram
and some visualization at best. Low-latency is essential though. The info
about latest CoreAudio stack on the internet seems increasingly scarce and
I'm hesitating to adopt 3rd-party frameworks such as JUCE for such a small
project. So I'd love to give the Swift stack or even just ObjC/C stack a
serious try.

Now my concern is mainly in the performance and latency. I've seen these
posts regarding using AVAudioEngine:

https://stackoverflow.com/questions/1877410/whats-the-difference-between-all-these-audio-frameworks

https://stackoverflow.com/questions/26115626/i-want-to-call-20-times-per-second-the-installtaponbusbuffersizeformatblock/26600077#26600077

https://stackoverflow.com/questions/45644079/performance-between-coreaudio-and-avfoundation

It seems there aren't a lot of agreements on whether or not the Swift stack
could achieve low-latency using its AU wrapper. Some says that the
performance is 30-40% worse than the CoreAudio stack. But there is also a
positive report:

https://stackoverflow.com/questions/45644079/performance-between-coreaudio-and-avfoundation

Before I dive into a whole new world (Swift newbie), any suggestions from
the list would be greatly appreciated!



Thanks,
Beinan
 _______________________________________________
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

  • Follow-Ups:
    • Re: CoreAudio vs. AVAudioEngine
      • From: Arshia Cont via Coreaudio-api <email@hidden>
  • Next by Date: Re: CoreAudio vs. AVAudioEngine
  • Next by thread: Re: CoreAudio vs. AVAudioEngine
  • Index(es):
    • Date
    • Thread