Questions tagged [avaudioengine]

Use this tag when your question is about the AVAudioEngine class, which is part of the AVFoundation framework.

AVAudioEngine is part of the AVFoundation framework for Apple platforms. The class provides some of the more complex audio processing functionalities within the framework, by grouping together connected audio node objects that provide functionality for creating and processing audio signals and IO.

The AVAudioEngine API can be found here.

Related tags:

535 questions
8
votes
2 answers

AVAudioEngine documentation

I'm trying to find a detailed documentation for how to work with AVAudioEngine. Does anyone know where I can find it? I've found this, but it seems extremely spartan in comparison to the richly documented UI…
Leonhard Printz
  • 355
  • 2
  • 16
8
votes
2 answers

On extracting the sound pressure level from AVAudioPCMBuffer

I have almost no knowledge in signal-processing and currently I'm trying to implement a function in Swift that triggers an event when there is an increase in the sound pressure level (e.g. when a human screams). I am tapping into an input node of…
Archy Will He 何魏奇
  • 9,589
  • 4
  • 34
  • 50
8
votes
1 answer

Trying to stream audio from microphone to another phone via multipeer connectivity

I am trying to stream audio from the microphone to another iPhone via Apples Multipeer Connectivity framework. To do the audio capturing and playback I am using AVAudioEngine (much thanks to Rhythmic Fistman's answer here). I receive data from the…
nullforlife
  • 1,354
  • 2
  • 18
  • 30
8
votes
6 answers

Saving Audio After Effect in iOS

i am developing an applicatoin so that people can record and change their voices thru app and share it . Basically i so many things and now its time to ask you to help . Here is my play function which plays recorded audio file and adds effects on it…
Kaan Baris Bayrak
  • 3,213
  • 3
  • 16
  • 20
8
votes
0 answers

AVAudioEngine to record mic and sound files and avoid feedback loop

I'm trying to use AVAudioEngine to record sound from the microphone and sound files (which are played when the user taps a button). I have hooked up the mic inputNode to the mainMixer, as well as a couple of AVAudioPlayerNodes for playing sound…
rodskagg
  • 3,827
  • 4
  • 27
  • 46
8
votes
1 answer

Play audio from AVAudioPCMBuffer with AVAudioEngine

I have two classes, MicrophoneHandler, and AudioPlayer. I have managed to use AVCaptureSession to tap microphone data using the approved answer here, and and converted the CMSampleBuffer to NSData using this function: func sendDataToDelegate(buffer:…
Connor Hicks
  • 755
  • 2
  • 8
  • 25
8
votes
2 answers

AVAudioEngine seek the time of the song

I am playing a song using AVAudioPlayerNode and I am trying to control its time using a UISlider but I can't figure it out how to seek the time using AVAUdioEngine.
luciansvnc
  • 121
  • 2
  • 7
8
votes
7 answers

completionHandler of AVAudioPlayerNode.scheduleFile() is called too early

I am trying to use the new AVAudioEngine in iOS 8. It looks like the completionHandler of player.scheduleFile() is called before the sound file has finished playing. I am using a sound file with a length of 5s -- and the println()-Message appears…
Oliver
  • 1,458
  • 1
  • 12
  • 12
7
votes
0 answers

Connect multiple AVAudioMixerNodes to AVAudioEngine

I'm having a crash when I try connecting two AVAudioMixerNodes to the microphone input of AVAudioEngine. I couldn't find documentation online how to manage two or more nodes to the same input. What is the proper way to handle that case where you…
Jaythaking
  • 2,200
  • 4
  • 25
  • 67
7
votes
0 answers

AVAudioSession services reset when capturing input from bluetooth device that disconnects

TL;DR - AVAudioSession will fire AVAudioSessionMediaServicesWereLostNotification when a bluetooth port is specified with AVAudioSession.setPreferredInput and that device disconnects while actively reading input with either AVCaptureSession or…
bclymer
  • 6,679
  • 2
  • 27
  • 36
7
votes
0 answers

What is the difference between AVAudioSession sample rate and AVAudioEngine input node sample rate?

I notice that AVAudioSession.sharedInstance().sampleRate is 48000, while AVAudioEngine().inputNode.inputFormat(forBus: 0) shows me a sample rate of 44100. When I do try AVAudioSession.sharedInstance().setPreferredSampleRate(16000) it sets the input…
Syllabear
  • 193
  • 5
7
votes
1 answer

Why isn't my multichannel mapping working correctly?

I recently posted this question about using multiroute with iOS and I thought I solved it, however I've discovered is doesn't quite work: AVAudioEngine Multichannel mapping The issue I'm having is the multiroute is only working for the first two…
Castles
  • 897
  • 1
  • 10
  • 29
7
votes
0 answers

AVAudioEngine crashing on sample rate in Swift

I have started getting a crash that did not previously happen with initialization of recording with the error: [avae] AVAEInternal.h:70:_AVAE_Check: required condition is false: [AVAudioIONodeImpl.mm:911:SetOutputFormat: (format.sampleRate ==…
user6631314
  • 1,751
  • 1
  • 13
  • 44
7
votes
1 answer

AVAudioEngine inputNode's format changes when playing an AVAudioPlayerNode

I'll start with a simple "playground" view controller class I've made that demonstrates my problem: class AudioEnginePlaygroundViewController: UIViewController { private var audioEngine: AVAudioEngine! private var micTapped = false …
WongWray
  • 2,414
  • 1
  • 20
  • 25
7
votes
0 answers

AVAudioEngine Xamarin.iOS not catched exception engine required running

I'm using Xamarin.iOS for an application using AVAudioEngine. Sometimes I get this exception : AVFoundation_AVAudioPlayerNode_Play Terminating app due to uncaught exception 'com.apple.coreaudio.avfaudio', reason: 'required condition is…
Jerome2606
  • 933
  • 20
  • 42
1 2
3
35 36