Questions tagged [audioqueueservices]

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.

Audio Queue Services Programming Guide

172 questions
5
votes
2 answers

Why might my AudioQueueOutputCallback not be called?

I'm using the Audio Queue Services API to play audio streamed from a server over a TCP socket connection on an iPhone. I can play the buffers that were filled from the socket connection, I just cannot seem to make my AudioQueue call my…
Matt Wilding
  • 20,115
  • 3
  • 67
  • 95
5
votes
3 answers

How to check current time and duration in AudioQueue

How to get total time duration of music in audioQueue. I am using NSTimeInterval AQPlayer::getCurrentTime() { NSTimeInterval timeInterval = 0.0; AudioQueueTimelineRef timeLine; OSStatus status = AudioQueueCreateTimeline(mQueue,…
Chandan Shetty SP
  • 5,087
  • 6
  • 42
  • 63
5
votes
1 answer

NSData or bytes from CMSampleBufferRef

Hello I need to send a CMSampleBufferRef over a network. The client then plays the CMSampleBufferRef via the Audio Queue Services. I have seen some examples on stack overflow, but most of them just send the buffer. But then some informations are…
5
votes
1 answer

Save to buffer instead of file when recording aac with Audio Queue Services

My goal is to record audio in AAC format and send it over a network connection as a stream. I'm using Audio Queue Services and have based my code on the SpeakHere example. I know that for writing to a file it uses the AudioFileWritePackets()…
4
votes
0 answers

Timing of Audio Queue Services and iPhone System Sounds

I am analyzing incoming audio on an iPhone/iPod Touch using the Audio Queue Services. The desired behavior of the analyzer boils down to this: when the App becomes active, start analyzing; when the App is sent to the background, stop analyzing. I am…
Andi Wagner
  • 310
  • 2
  • 9
4
votes
1 answer

Playback MP3 data buffer using AudioQueue Service : Prime failed (-50)

These days I was struggling for finding the way to playback network audio stream (in MP3 packet format) using AudioQueue Service on iPhone. To achieve this target successively, I firstly got the common local MP3 file to playback using AudioQueue,…
4
votes
2 answers

Does an audio queue callback function have to be a C style function? Or can it be an objective C style method?

Does an audio queue callback function have to be a C style function? Or can it be an objective C style method?
Darren Findlay
  • 2,533
  • 2
  • 29
  • 46
4
votes
3 answers

AudioQueueStart is returning error code -50

Start audio recording giving error sometimes and below method returns error Error Domain=NSOSStatusErrorDomain Code=-50 "(null)" UserInfo= status = AudioQueueStart(_state.queue, NULL); Followed below steps for recording audo - Created a…
Sudhakar Tharigoppula
  • 2,857
  • 3
  • 16
  • 17
4
votes
1 answer

Audio Queue Services recording to .mp4 file, that cannot be play. And Magic Cookie issue

I am a newbie Mac programmer just for 3 months. I got a Audio Queue Services problem, hope anyone can help me. I using Audio Queue Services API created a recording program, and output AAC format data. It's seems good, everything work fine. Until I…
Ryan Liang
  • 51
  • 5
4
votes
1 answer

Audio Queue Services Player in Swift isn't calling callback

I've been playing around with Audio Queue Services for about a week and I've written a swift version of from the Apple Audio Queue Services Guide. I'm recording in Linear PCM and saving to disk with this method: AudioFileCreateWithURL(url,…
aBikis
  • 323
  • 4
  • 16
4
votes
4 answers

Core Audio on iPhone - any way to change the microphone gain (either for speakerphone mic or headphone mic)?

After much searching the answer seems to be no, but I thought I'd ask here before giving up. For a project I'm working on that includes recording sound, the input levels sound a little quiet both when the route is external mic + speaker and when…
Halle
  • 3,584
  • 1
  • 37
  • 53
4
votes
1 answer

How to start writing out an existing AudioQueue in response to an event?

I am writing a class that opens an AudioQueue and analyzes its characteristics, and then under certain conditions can begin or end writing out a file from that AudioQueue that is already instantiated. This is my code (entirely based on SpeakHere)…
Halle
  • 3,584
  • 1
  • 37
  • 53
4
votes
2 answers

How do I get the filesystem path for a resource on iPhone?

On the iPhone I need to get the path for the resource. OK, done that, but when it comes to CFURLCreateFromFileSystemRepresentation thing, I just don't know how to solve this. Why does this error occur? Any solution or workaround would be highly…
Karl
  • 5,613
  • 13
  • 73
  • 107
3
votes
2 answers

Do I need to deal with Audio Units when I need custom audio effects or can I rely on Audio Queue Services?

From my understanding Audio Queue Services are a higher level API than Audio Units, which use Audio Units. OpenAL also uses Audio Units. So Audio Units is the lowest level audio API in iOS. I need to record a sound and then apply a custom filter to…
Proud Member
  • 40,078
  • 47
  • 146
  • 231
3
votes
1 answer

Audio Queue Services callback: AudioStreamPacketDescription cannot be copied?

I am creating a simple iOS app that records audio with a circular buffer. This means that it continually records audio, but only keeps the last 15 buffers in memory. I do this by copying all the data I get from the AudioInputCallback: void…
Peterdk
  • 15,625
  • 20
  • 101
  • 140
1
2
3
11 12