Questions tagged [audiokit]

AudioKit is an audio synthesis, processing, and analysis platform for macOS, iOS, and tvOS.

Use this tag to get answers on AudioKit. Please post code that you have tried. Make sure it is actually a question concerning AudioKit. Questions for toolchain, language or software design should also contain more tags to get a wider audience.

Getting help

There are two methods for getting support for AudioKit, listed in order of what you should try first:

  1. Post your problem to StackOverflow with this audiokit tag.

  2. If you are pretty sure the problem is not in your implementation, but in AudioKit itself, you can open a Github Issue.

Links to documentation, samples and code

947 questions
4
votes
2 answers

iOS - AudioKit Crashes when receiving a phone call

AudioKit 4.9.3 iOS 11+ I am working on a project where the user is recording on the device using the microphone and it continues to record, even if the app is in the background. This works fine but when receiving a phone call I get an AudioKit…
cspam
  • 2,911
  • 2
  • 23
  • 41
4
votes
0 answers

How to dynamically change players in AudioKit output

I'm implementing an app utilizing AudioKit that allows you to play a large number of audio files and switch between them at any time. Additionally we need one audio file to play on loop for ambient noise. What is the correct way to dynamically…
Jordan H
  • 52,571
  • 37
  • 201
  • 351
4
votes
1 answer

Is there a way to unit test code that uses AudioKit in isolation?

AudioKit seems very tightly coupled with hardware that it's being run on. For example, simple let mic = AKMicrophone() run on simulator can crash if you plug in headphones to your computer. Is there any way to configure the AudioKit in a way to…
4
votes
1 answer

AVAudioEngine causes AUGraphParser::InitializeActiveNodesInInputChain error on iOS 13

I am using SFSpeechRecognizer and noticed this error showing up on iOS >= 13. This is my code for starting recognition process: - (void)startRecording:(BOOL)collectPartialResults { NSError *error; AVAudioSession *audioSession =…
Piotr
  • 1,743
  • 1
  • 26
  • 40
4
votes
1 answer

iOS13 Crash - Error: Failed to fill complex buffer in float converter ('insz')

I am using AudioKit 4.8 like this class AudioKitWrapper { /// The main output mixer (after the amplitude tracker) private let masterMixer: AKMixer /// The audio input private var microphone: EZMicrophone? /// Construction …
Martin Mlostek
  • 2,755
  • 1
  • 28
  • 57
4
votes
1 answer

How to fix iOS 13.1.2 AudioKit.renderToFile exception: AUGraphParser::InitializeActiveNodesInInputChain(ThisGraph, *GetInputNode())): error -10868

I have met this problem with iOS 13.1.2 and AudioKit 4.9. Testing with iPhone XS. I'm trying to render clip recorder result using this code: func preRender() { var scheduleTime : TimeInterval = 2 let dspTime =…
4
votes
1 answer

AKMIDICallbackInstrument - callback NOT called

How to Reproduce I copied the "Callback Instrument" playground (which works), into a new project. installed AudioKit via pod (version 4.8) I removed the implementation of the callback and put there only a print() statement. Open workspace and run…
4
votes
0 answers

AudioKit export song pre iOS 11

Note that this is NOT a duplicate of this SO Post because in that post only WHAT method to use is given but there's no example on HOW should I use it. So, I have dug into AKOfflineRenderNode as much as I can and have viewed all examples I could…
Nicholas
  • 747
  • 7
  • 23
4
votes
1 answer

how to fix "Failed to fill complex buffer in float converter" in EzAudio swift iOS 13

I am using EZaudio to play mp3 files and it works on iOS 12 and below but on physical Device (iPhone X) running iOS 13 app crashed and console print error Error : Failed to fill complex buffer in float converter I am using Audiokit and…
mahad shahib
  • 300
  • 2
  • 12
4
votes
0 answers

Is it possible to maintain playback in AudioKit after a route change?

Is it possible to continue playing sound after a route change (such as switching speakers or plugging in/unplugging headphones) without reloading the sample again in Sampler? This is the only approach I have found that works: @objc dynamic…
4
votes
0 answers

AudioKit: Error/Crash when changing output device via the OS (macOS)

I'm currently trying to switch my app to AudioKit. As I understand AudioKit, changing the output device during playback from headphone to build-in speaker by pulling the plug should work like a charm. Here is a little test routine I wrote in a cocoa…
Chris
  • 41
  • 4
4
votes
0 answers

AudioKit .nearestQuantizedPosition missing a beat?

I have some iOS Swift code (using AudioKit 4.5.3), that’s using an AKSequencer feeding an AKCallbackInstrument to play an eight beat drum loop. I’m also quantizing some user input, so I’m accessing .currentRelativePosition, and…
Brian H
  • 153
  • 7
4
votes
1 answer

AudioKit AKNodeRecorder create empty audio file

I am developing an application for iOS, and I need some audio processing methods so I employed AudioKit which is awesome. However I failed using AKNodeRecorder when trying recording the effects into audio file. I have tried using the…
Tao
  • 51
  • 4
4
votes
0 answers

AudioKit and AUv3 Instrument

I have currently an audio app, using AudioKit, that play samples with AKSampler and I'm now trying to make an AUv3 AudioUnit extension for my app. I have successfully create my AUv3 extension (thanks to the AudioKit AUv3 tutorial) but now I can't…
Relpot
  • 104
  • 3
4
votes
0 answers

Use built-in microphone with AudioKit with headphones connected

I'm trying to change the internal microphone with the connected headphones but I do not change it. I'm using: try! AudioKit.setInputDevice(inputs[1]) try! mic.setDevice(inputs[1]) I have tried inputs 0, 1, and 2 but there is no change.