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
26
votes
1 answer
AudioQueueDispose delay
According to documentation here https://developer.apple.com/library/mac/documentation/MusicAudio/Reference/AudioQueueReference/#//apple_ref/c/func/AudioQueueDispose
err = AudioQueueDispose(queue, true);
I use true so dispose of AudioQueue happens…

SpaceDust__
- 4,844
- 4
- 43
- 82
20
votes
3 answers
Example of using Audio Queue Services
I am seeking an example of using Audio Queue Services.
I would like to create a sound using a mathematical equation and then hear it.

Sagiftw
- 1,658
- 4
- 21
- 25
12
votes
4 answers
Using Audio Queue Services to play PCM data over a socket connection
I'm writing a remote desktop client for the iPhone and I'm trying to implement audio redirection.
The client is connected to the server over a socket connection, and the server sends 32K chunks of PCM data at a time.
I'm trying to use AQS to play…

Rohan
- 121
- 1
- 3
9
votes
3 answers
Can not restart an interrupted audio input queue in background mode on iOS
I'm writing an iOS App using an AudioQueue for recording. I create an input queue configured to get linear PCM, stated this queue and everything works as expected.
To manage interruptions, I implemented the delegate methods of AVAudioSession to…

Tobias Kräntzer
- 1,694
- 1
- 13
- 23
9
votes
5 answers
AudioQueueStart fail -12985
I made a streaming music player and it works fine in the foreground.
But in the background iOS4, it doesn't play the next song automatically. ( remote control works )
The reason is AudioQueueStart return -12985.
I already check the audio session. it…

ys1103
- 91
- 4
9
votes
4 answers
Audio Processing: Playing with volume level
I want to read a sound file from application bundle, copy it, play with its maximum volume level(Gain value or peak power, I'm not sure about the technical name of it), and then write it as another file to the bundle again.
I did the copying and…

cocoatoucher
- 1,483
- 3
- 17
- 22
9
votes
2 answers
How do I start a Record iOS audio session in the background?
I'm trying to start a kAudioSessionCategory_RecordAudio after my app is woken up in the background but not forefront (like during a significant location change, I have seen other apps in the store do this so I know it is possible). However whenever…

audioBackgrounder
- 131
- 1
- 6
9
votes
3 answers
Why call to CFRunLoopRunInMode() in Audio Queue Playback code?
I'm following the iOS "Audio Queue Programming Guide - Playing Audio". Near the end of the guide, there are calls to CFRunLoopRunInMode() in the step Start and Run an Audio Queue:
do { // 5
…

Daniel S.
- 6,458
- 4
- 35
- 78
8
votes
3 answers
AudioQueueStart fails when iphone app running in background iOS4.0
I'm having difficulties starting the AudioQueue when my app is in the background with iOS4.0
The code works fine when the app is active, but fails with -12985 code when running in the background.
err = AudioQueueStart( queueObject, NULL…

dquail
- 209
- 3
- 10
8
votes
3 answers
Precise time of audio queue playback finish
I am using Audio Queues to playback audio files. I need precise timing on the finish of last buffer.
I need to notify a function no later than 150ms-200 ms after the last buffer is played...
Thru callback method I know how many buffers are…

SpaceDust__
- 4,844
- 4
- 43
- 82
7
votes
2 answers
AudioQueueFreeBuffer warning
I am getting warning "AudioQueueObject::FreeBuffer: AQBuffer * 0x6273fd0 has enqueue count of 1" for API AudioQueueFreeBuffer... How to avoid this warning?
I am getting this warning in AudioQueueFreeBuffer API
for (int i = 0; i <…

Chandan Shetty SP
- 5,087
- 6
- 42
- 63
7
votes
1 answer
Playback and Recording simultaneously using Core Audio in iOS
I need to play and record simultaneously using Core Audio. I really do not want to use AVFoundation API (AVAudioPlayer + AVAudioRecorder) to do this as I am making a music app and cannot have any latency issues.
I've looked at the following source…

Bijoy Thangaraj
- 5,434
- 4
- 43
- 70
6
votes
1 answer
Audio Queue is playing too fast when the buffer size is small
I am able to stream and play m4a files using Audio File Services + Audio Queue Services. Bitrate information of the file is not available to the Audio Queue because of file type.
After downloading the all of the audio packets I feed them to the…

SpaceDust__
- 4,844
- 4
- 43
- 82
6
votes
1 answer
Reading audio buffer data with AudioQueue
I am attempting to read audio data via AudioQueue. When I do so, I can verify that the bit depth of the file is 16-bit. But when I get the actual sample data, I'm only seeing values from -128 to 128. But I'm also seeing suspicious looking…

Eric Christensen
- 819
- 3
- 9
- 21
5
votes
1 answer
Audio recorded using Audio Queue Services to data
I want to transmit voice from one iPhone to another. I have established connection between two iPhones using TCP and I have managed to record voice on the iPhone and play it using Audio Queue Services. I have also managed to send data between the…

simonbs
- 7,932
- 13
- 69
- 115