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
0
votes
1 answer
iOS SDK: AudioQueue and AirPlay
I'm currently investigating how we could add airplay functionality to our existing application.
In this app, we're using AudioQueue "manually". We're not using AVPlayer or MPMoviePlayer. So we're just pushing audio buffers into an AudioQueue and…

aspyct
- 3,625
- 7
- 36
- 61
0
votes
2 answers
AudioQueueBufferRef empty due to stream lag
I have 3 audioQueueBufferRef to fill my audioqueue and everyting works nice when data comes fast enough. But sometimes the outputCallback ask to fill a buffer when there is no more data. In this case i don't enqueue something and the callback is no…

Kamax
- 212
- 2
- 14
0
votes
1 answer
Precisely scheduling sound in iOS 7
I'm working on an iOS7-only app that needs to display a clock complete with ticking sound. I've used a NSTimer of 1s and I use AVAudioPlayer to play the tick sound every second.
Unfortunately, there's something slightly off with the timing. I've…

Frank R.
- 2,328
- 1
- 24
- 44
0
votes
1 answer
Make a .caf file out of buffer data
I have inBuffer->mAudioData converted into NSData coming via Network. I do this using the Audio Queue Callback.
How do I convert this NSData so that I can either create a .caf sound file or directly give output to the speaker on the other side…

Geekoder
- 1,531
- 10
- 21
0
votes
1 answer
How to play next file using Audio Queue Services
What is the right way to play next file using Audio Queue Services? When "play next" button is pressed should I first call AudioQueueStop and then AudioQueuePrime/AudioQueueStart or it is enough to just fill buffers with next file data?
The problem…

Stanislav
- 2,089
- 1
- 16
- 11
0
votes
1 answer
Audio Queue Interface can deal with 40ms Audio Frame?
I am trying to record the audio in segment of 40ms.
Audio Queue Interface can deal with 40ms Audio Frame?
If 'Yes' then how can we achieve it?
Thanks.

Pravin
- 1
- 2
0
votes
2 answers
Audio Queue doesnt play sound
I am making application which uses Audio Queue.
I made these code by reading and studying from books.
I just want to play the audio file simply.
it doesnt show any compile errors,but it doesn't soound.
please help me.
AudioQueuePayer.h
@interface…

whitebear
- 11,200
- 24
- 114
- 237
0
votes
1 answer
ios audio queue - how to meter audio level in buffer?
I'm working on an app that should do some audio signal processing. I need to measure the audio level in each one of the buffers I get (through the Callback function). I've been searching the web for some time, and I found that there is a build-in…

Gal Malka
- 307
- 3
- 12
0
votes
1 answer
when in audio callback function, how to update the UI/call the view controller?
I am currently learning to use Audio Queue Services in iOS. For this, I followed Audio Queue Services Programming Guide - Recording Audio. This works.
Now I would like to update a UI element (a power meter) when the callback function receives the…

Daniel S.
- 6,458
- 4
- 35
- 78
0
votes
2 answers
Using audioqueue to stream audio. How to get the length of the audio file before playback ends?
Already finished implementing the player. I want to implement the progress bar. But I wonder if that's possible to do since we are streaming the music. Unless we are provided the length of the song before hand.
Please, I need your advice on this.

RoundOutTooSoon
- 9,821
- 8
- 35
- 52
0
votes
1 answer
AudioQueueOutputCallback not called at first
My question may be similar to this: Why might my AudioQueueOutputCallback not be called?
It seems that person was able to fix by running audio stuff on main thread. I cannot do that.
I enqueue buffers to prime audio Q, then start audio Q. Shouldn't…

Ted P
- 95
- 1
- 10
0
votes
2 answers
Removing Silence from Audio Queue session recorded audio in ios
I'm using Audio Queue to record audio from the iphone's mic and stop recording when silence detected (no audio input for 10seconds) but I want to discard the silence from audio file.
In AudioInputCallback function I am using following code to detect…

user1495653
- 133
- 1
- 1
- 8
0
votes
1 answer
when audioqueue play lpcm decoded from ffmpeg, the elapsed time of audio queue exceeds the duraion of the media
When play the lpcm data decoded from ffmpeg with audioqueue, the elapsed time got by AudioQueueGetCurrentTime exceeds the duration of media. But when decode the same media with AVFoundation framework, the elapsed time equals duration of the media,…

zhzhy
- 461
- 3
- 17
0
votes
1 answer
EXC_BAD_ACCESS with AudioFileReadPackets
I've been trying to serialize a local audio file following the instructions here, only instead of feeding the packets directly to the AudioQueBuffer, I would like send it over bluetooth/wifi using GKSession. I'm getting an EXC_BAD_ACCESS error:
-…

abbood
- 23,101
- 16
- 132
- 246
0
votes
1 answer
AC3 audio FramesPerPacket size
I do create the Audio Queue in following way
AudioQueueNewOutput(&audioFormat, audioQueueOutputCallback, (__bridge void*)self, NULL, NULL, 0, &mAudioQueue)
Where the format is following
audioFormat.mFormatID = kAudioFormatAC3; …

deimus
- 9,565
- 12
- 63
- 107