117 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
95
views
AVAudioEngine: Execution breakpoint when installing a tap on the main mixer node
I'm working on an audio visualizer app that plays files from the user's music library utilizing MediaPlayer and AVAudioEngine. I'm working on getting the music library functionality working before the ...
1
vote
0
answers
48
views
AVAudioUnitTimePitch causing pop/crackle sound when playing AVAudioPlayerNode
I am fully aware that pausing and playing the AVAudioPlayerNode abruptly do cause some crackle sounds. Even after having a simple fade in and fade out of the volume of the main mixer node of ...
0
votes
1
answer
85
views
Audio playback interrupts with brief gaps of silence in Swift
I have a WebSocket connection that sends 256KB chunks of binary audio data. I need to decode this binary format, write it into an AVAudioPCMBuffer, and schedule it for playback using AVAudioPlayerNode....
1
vote
0
answers
195
views
How to resolve AVAudioPlayer throwing Exception: "player did not see an IO cycle"
I have been wrestling with this problem for over a month now on Xamarin Forms iOS.
I'm writing an audio player which saves securityscoped urls into my own library stored in the sandbox. (The urls are ...
1
vote
0
answers
134
views
Synchronizing multiple AVAudioPlayerNodes using lastRenderTime right after starting engine
I'm trying to perfectly synchronize the playback of 2 AVAudioPlayerNode using AVAudioEngine. I can achieve this if the engine in running, because then I can use one of the player's lastRenderTime. ...
0
votes
1
answer
316
views
Very Rare Intermittent Crash in AVFoundation.AVAudioPlayerNode.play() (AVAudioPlayerNode.mm:660)
For the past 8+ months this has been crashing in my app. While I pride myself in being able to debug and fix anything, I have never once even been able to reproduce this crash. As this is code that ...
1
vote
1
answer
465
views
AVAudioEngine and playernode no output sound and errors macOS and swift
Hello all I'm revamping an old macOS app based on swift CoreAudio which now is crashing or after some minutes corrupts the audio stream. It is taking an USB raw audio as input and playback to the ...
1
vote
1
answer
1k
views
avoid background noise and audio echo in AvAudioEngine Swift
I am trying to send audio with using AudioEngine (getting over iPhone microphone) to another listening device via GCDAsyncUdpSocket, and I get audio in another ios device and I can listen auido in ...
1
vote
0
answers
200
views
Playing AAC stream in AVAudioEngine
The challenge is scheduling an AAC buffer in a AVAudioPlayerNode which only consumes uncompressed linear pcm buffers.
The function playAudio takes a Data() object that contains a chunk of AAC being ...
1
vote
1
answer
413
views
Get name or ID of current audio output using swift
My application allows the user to select which Audio Output device is being used to play sound. I can’t find or figure out how to get the current Audio Output device being used by the system.
Im using ...
0
votes
1
answer
1k
views
AVAudioPlayerNode.play() causes crash after backgrounding and foregrounding the app
I'm working on a watchOS app which plays sound using an AVAudioPlayerNode. Whenever I put the app in the background, open it back again and try to play sound, the app crashes with the following ...
2
votes
0
answers
161
views
Swift AVAudioUnitReverb's bypass property works incorrectly
Looks like bypass property for AVAudioUnitReverb works incorrectly.
If AVAudioUnitReverb.bypass is set to true - it's switch off whole graph and no sound produced from the engine's output node. It is ...
2
votes
1
answer
291
views
How to update MPNowPlayingInfoCenter/MPRemoteCommandCenter play/pause controls with AVAudioPlayerNode?
I am making a simple music player app that just plays audio using AVAudioEngine. When I pause the AVAudioPlayerNode, it does not update the play/pause control of the MPNowPlayingInfoCenter/...
0
votes
0
answers
501
views
Built a very simple AVAudioEngine music player app. Resuming AVAudioEngine causing lag in the UI especially when resuming some time after pausing
Edit 2: When I don't pause the audio engine and just the player node and then resume the player node, there is no ui lag or anything at all. Smooth playback with no crackling. But I have to pause the ...
2
votes
1
answer
655
views
What value to put for frameCapacity in AVAudioPCMBuffer initializer?
I'm making a metronome using AVAudioEngine, AVAudioPlayerNode, and AVAudioPCMBuffer. The buffer is created like so:
/// URL of the sound file
let soundURL = Bundle.main.url(forResource: <filename&...