0

I need to extract waveform data asynchronously from a file after having applied some equalization. Using the AVAudioEngine I encounter in random silences at the beginning of the samples (it's more of a delay of the real data but unfortunately such delay can't be detected for instance with a longer number of samples).

enter image description here

I asked directly to Apple using the code support tickets but they don't have a solution. Looks like AVAudioEngine offline rendering mode is bugged.

Looking for third party solutions, I came across AudioKit which seems to be using AVAudioEngine. So, assuming AudioKit can extract asynchronously a waveform after EQ is applied, would it do it bypassing AVAudioEngine offline mode?

Nuthinking
  • 1,211
  • 2
  • 13
  • 32
  • Maybe I am in luck and it uses the lower level audio unit: https://github.com/AudioKit/AudioKit/blob/d3da07d24b43ce23fbb7a5bafbf43db4104e8211/AudioKit/Common/Nodes/Offline/OfflineRender/AKOfflineRenderNode.swift – Nuthinking Dec 18 '18 at 08:31
  • Looks like [it does](https://github.com/AudioKit/AudioKit/blob/d3da07d24b43ce23fbb7a5bafbf43db4104e8211/AudioKit/Common/Internals/AVAudioEngine%2BExtensions.swift) but only for rendering to file, what about extracting samples data? – Nuthinking Dec 18 '18 at 08:50
  • No one else can see the bug report you linked to. Can you copy it here, and say more about what you’re trying to do? – Aaron Brager Dec 18 '18 at 09:53
  • @AaronBrager ops, re-edited my question. Thanks! – Nuthinking Dec 18 '18 at 10:28
  • 185MB .framework is definitely overkill for what I need. – Nuthinking Dec 18 '18 at 11:33
  • It would be helpful if you would include the code in your question. – dave234 Dec 22 '18 at 00:46

0 Answers0