Audio Queue Services provides a straightforward, low overhead way to record and play audio in OS X. Starting with OS X v10.5, it is the recommended technology to use for adding basic recording or playback features to your Mac app.
Questions tagged [audioqueueservices]
172 questions
2
votes
2 answers
Setting the input volume on an audio queue
So I can't find anything online that says I can't do this, but whenever I try to do it on the iPhone, errors are returned from AudioQueueSetParameter. Specifically, if I try this code:
AudioQueueParameterValue val =…

Robbie
- 831
- 2
- 14
- 22
2
votes
1 answer
AudioFileReadPacketData returns -50 when passed valid file
I've spent some time attempting to debug this on my own but I can't seem to get the AudioFileReadPacketData to correctly read the passed in data. This is based almost directly off of the Apple AudioQueueServices Guide.
class SVNPlayer: SVNPlayback…

aBikis
- 323
- 4
- 16
2
votes
0 answers
iOS AudioQueue stuttering
I am building a streaming system for audio playback, and every so often, the audio either glitches or starts stuttering for a second or two.
I am running a single output audioQueue with 3 allocated buffers of 1024 samples with a sample rate of…

velochy
- 371
- 2
- 12
2
votes
1 answer
Popping noise between AudioQueueBuffers
I'm trying to play a pure sine wave tone using Core Audio AudioQueue's (Swift 3).
It plays nicely, but I'm getting popping noises every time my AudioQueueOutputCallback is invoked to fill a new buffer with audio data.
My AudioStreamer class looks…
2
votes
0 answers
Detect when iOS stops my recording
I'm using Audio Queue Services on iOS to make an app that records, even when the phone is locked or the app isn't in the foreground. This much I have working.
However, if I open Safari and play audio or open another recording app like Voice Memo and…

Agumander
- 676
- 4
- 11
2
votes
1 answer
Audio Queue Services: changing output device
I've spent the last week on an unplanned excursion into the depths of the Macintosh sound system after NSSound proved to be unequal to the task.. I finally got my file playing with Audio Queue Services and now there's only one little thing left to…

Frank R.
- 2,328
- 1
- 24
- 44
2
votes
0 answers
Input ring buffer returning 0x400 frames of silence error
I'm developing an app for transfer audio data between 2 iOS devices.
At the moment I'm using NSInputStream for receive the incoming audio and the data into a queue (AudioQueueNewInput).
The callback of the AudioQueue is
void…

Pablo Martinez
- 1,573
- 12
- 31
2
votes
1 answer
play iphone audio at constant volume
I am using AudioQueue Services to play audio in my app (AQPlayer borrowed from Speak Here) and I would like to know if it is possible to play the audio at a constant volume regardless of the iphone hardware volume.
Apple's phone.app keypad is an…

jopke
- 1,186
- 6
- 18
2
votes
1 answer
Best practice to detect a signal/flag in aac stream
I am decoding and playing an aac stream on iOS devices. So far following this tutorial I can tap the stream and get the raw PCM from aac hls packets.
My goal is to get somekind of flag or signal from aac stream and do some UI work afterwards.
I…

SpaceDust__
- 4,844
- 4
- 43
- 82
2
votes
1 answer
Why does the packet number in my audio queue input callback vary?
I use Audio Queue Services to record PCM audio data on Mac OS X. It works but the number of frames I get in my callback varies.
static void MyAQInputCallback(void *inUserData, AudioQueueRef inQueue, AudioQueueBufferRef inBuffer, const AudioTimeStamp…

Jan Deinhard
- 19,645
- 24
- 81
- 137
2
votes
1 answer
Recording Audio on iPhone and Sending Over Network with NSOutputStream
I am writing an iPhone application that needs to record audio from the built-in microphone and then send that audio data to a server for processing.
The application uses a socket connection to connect to the server and Audio Queue Services to do the…

Mark Kanof
- 1,426
- 1
- 11
- 16
2
votes
2 answers
Do Audio Queue Services buffers need to be even multiples of packet size?
I'm trying to use Audio Queue Services to play mp3 audio that is being delivered from an external process. I am using NSTask and NSOutputHandle to get the output from the command - that part works fine. I'm using Audio File Stream Services to parse…

jsd
- 7,673
- 5
- 27
- 47
2
votes
2 answers
Core Audio get data from AudioQueue (or AudioUnits) into memory
I'm a total noob when it comes to core audio so bear with me. Basically what I want to do is record audio data from a machine's default mic, record until the user decides to stop, and then do some analysis on the entire recording. I've been learning…

themantalope
- 1,040
- 11
- 42
2
votes
2 answers
Manipulating AudioQueueBuffer audio data results in noise
I try to implement an iPhone sound processing app using SpeakHere sample app as a starting point. The app involves manipulating buffered audio samples during playback. When I multiply the samples by a fractional number (0.9 for instance) I get noise…

Thorny
- 21
- 3
2
votes
3 answers
Resume audio recording after incoming call?
We are recording audio with AVAudioRecorder but when ever we receive any incoming call Recording gets stopped. If we try to Resume recording again then it will start from the beginning. I have checked the Voice Memos(iOS Apple Application) & find…

nitish
- 109
- 1
- 8