371 questions
4
votes
0
answers
163
views
macOS AudioToolbox kAudioUnitSubType_HALOutput Obj-C API broken?
The following ~100 lines of code for capturing audio input signals from whichever default device, that used to work ever since OSX, seem broken as of macOS 11 API, approximately. It compiles and links ...
2
votes
0
answers
34
views
Instruments shows leaks from AudioToolbox after starting AudioKit engine (v5.6.5)
I’m using AudioKit 5.6.5 with SwiftUI. When I create and start an AudioEngine, Instruments’ “Leaks” tool flags leaks attributed to AudioToolbox. When I stop the engine or remove my view, the leaks ...
1
vote
1
answer
56
views
How to export 32 Bit WAV file with AVAssetWriter on iOS?
I try to export wav 32bit file, but AVAssetWriter can not add input
let setting = [
AVFormatIDKey : kAudioFormatLinearPCM,
AVSampleRateKey : 44100,
...
2
votes
0
answers
103
views
FFPEG: Errors opening audio input stream on MacOs
I am encountering the following warning (from Audio Toolbox?) very often when opening an external microphone audio stream with ffmpeg's libavformat on macOS:
CMIO_Unit_Converter_Audio.cpp:590:...
1
vote
1
answer
114
views
Unable to write audio queue to file to m4a
I currently use AVAudioRecorder to record audio in an app. If the app crashes or something happens while recording, the file being recorded is lost so as an alternative, I'm trying to use Audio Queue ...
6
votes
2
answers
1k
views
Using AVSampleBufferAudioRenderer to play packets of streamed PCM audio (decoded from Opus)
Edit: Updated code based on suggestions, fixing the ASBD and making another attempt at getting PTS right. It still doesn't play any audio, but there are no errors anymore at least.
I'm working on an ...
1
vote
0
answers
164
views
AVAudioEngine vs AudioToolbox audio units
I want to build a DAW for macos and I am wondering what would be the best approach. Using AudioToolbox and core audio functionalities or AVAudioEngine? I am bit confused because I've seen that AUgraph ...
1
vote
0
answers
303
views
iOS AudioConverter exceeds maximum packet size (2048) for input format
I'm trying to decode aac to pcm data, my goal is to decode the acc data received by tcp into pcm data. Currently I want to convert local aac files to pcm data first, and I encounter a problem:
[...
0
votes
0
answers
167
views
Is it possible to call AudioServicesDisposeSystemSoundID(_ inSystemSoundID: SystemSoundID) in different target?
I am creating a notification service extension and I have a special use case so I have to play sound using AudioToolbox instead of regular notification sound.
It works pretty well, but I don't know ...
1
vote
0
answers
74
views
What is the ID of the 'MessageReceived' sound on macOS?
I'm trying to use the 'ReceivedMessage' sound on macOS using AudioServicesPlaySystemSound() but I can't seem to find the ID anywhere.
What I've tried:
I've looked under /System/Library/Components/...
0
votes
0
answers
88
views
MIDI file generated by using MusicSequenceFileCreate has Sysex MIDI message (iOS 16.0.2)
I am using the MusicSequenceFileCreate method to generate a MIDI file from a beat-based MusicSequence. In iOS 16.0.2 devices, the file that is created has a Sysex MIDI message added (not by me) to the ...
1
vote
0
answers
74
views
AUGraph Record and Play
When I use AUGraph to implemention record and play, I want to get audio data through RenderCallback.There is a problem in remote io unit callback with error kAudioConverterErr_InvalidInputSize(...
1
vote
0
answers
2k
views
Which ALAC encoder should I use with ffmpeg ? (alac, alac_at)
I'm encoding audio files from AIFC to ALAC using ffmpeg, I noticed that ffmpeg provides two different encoders for this purpose, named alac and alac_at:
$ ffmpeg -encoders
...
A..... alac ...
2
votes
1
answer
226
views
AudioConverterRef with different number of channels
I have an audio format with 4 channels that I want to convert into 2 channels format. kAudioConverterChannelMap can only discard the extra inputs:
When In > Out, the first Out inputs are routed to ...
0
votes
0
answers
318
views
AU host crashes in IOThread in macOS 11 and later
I've problem with an AU host (based on Audio Toolbox/Core Audio, not AVFoundation) when running on macOS 11 or later and Apple Silicon – it crashes after some operations in GUI. The weird is, it ...