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
2
votes
1 answer

VoIP functionality using Audio Queue or Audio Unit

Can u please tell me how this can be done ? recording the audio on one device & playing on other (VoIP) ? I m stuck here: I m getting the input voice data on one device in this function void AQRecorder::MyInputBufferHandler( void * …
Asif Ali
  • 21
  • 1
2
votes
2 answers

Is there a FSRef in iPhone SDK or is there something that can be FSRef's alternative?

The question may sound stupid, but the thing is this: I am learning how to use a Audio Queue, and the example I've taken (aqtest) has been a nice guide for me until I recently found out that aqtest is not for iPhone. (stupid me) I served around the…
unknownthreat
2
votes
2 answers

AVAssetReader to AudioQueueBuffer

Currently, I'm doing a little test project to see if I can get samples from an AVAssetReader to play back using an AudioQueue on iOS. I've read this: ( Play raw uncompressed sound with AudioQueue, no sound ) and this: ( How to correctly read…
btomw
  • 2,512
  • 2
  • 20
  • 25
2
votes
2 answers

How to send a message to self in a C function in obj-C?

I have a C function(a callback function in Audio Queue Services) and I want to send message to self. How to do that? If I type in [self message], there is an error: Use of undeclared identifier 'self'
yoyosir
  • 458
  • 2
  • 11
  • 27
1
vote
2 answers

Skip between multiple files while playing audio in iPhone iOS

For a project I need to handle audio in an iPhone app quite special and hope somebody may point me in the right direction. Lets say you have a fixed set of up to thirty audio files of the same length (2-3 sec, non-compressed). While a que is…
Spispeas
  • 151
  • 1
  • 7
1
vote
2 answers

Can we use the Core Audio SDK for developing sound effect units for iOS?

There's a so called "Core Audio SDK" which Apple says is for "Mac OS X development". Since there are similarities between Core Audio on the Mac and Core Audio on iOS maybe it's possible to use that SDK for iOS development as well?
Proud Member
  • 40,078
  • 47
  • 146
  • 231
1
vote
1 answer

How to play NSData(bytes) with Audio Queue's?

how to play [NSData bytes] with Audio Queue Services, from speakHere example the bytes are token from the AudioFile, but i'm having sound downloaded from internet i need to play it with Queue Services. Iv've tried to the parameters like this: …
Florik
  • 1,260
  • 1
  • 12
  • 20
1
vote
1 answer

AudioQueueLevelMeterState from AVPlayer object

Is it possible to extract queue's from AVPlayer somehow, because from a queue is possible to extract objects like AudioQueueLevelMeterState, or information about channel numbers, sublevel meters to draw some nice animation on the scene while sound…
Florik
  • 1,260
  • 1
  • 12
  • 20
1
vote
1 answer

Iphone Streaming and playing Audio Problem

I am trying to make an app that plays audio stream using ffmpeg, libmms. I can open mms server, get stream, and decode audio frame to raw frame using suitable codec. However I don't know how to do next. I think I must use AudioToolbox/AudioToolbox.h…
KayKay
  • 114
  • 1
  • 10
1
vote
0 answers

Streaming audio data Using Audio Queue Services drops audio after first few buffers

I've been trying to get audio data to be played when it's being received but from the current implementation I found had flaws. I've modified it somewhat, but there are almost no examples of this case of streaming live audio data. The issue occurs…
Josiah Agosto
  • 41
  • 1
  • 8
1
vote
0 answers

Map AVAudioPCMBuffer audio data to AudioQueueBufferRef inside an AudioQueueCallbackHelper

I've had to work on a low level audio solution for an application that has very specific audio requirements, including some time stretching and pitch shifting algorithms done with a c++ third party code that's beyond the scope of this question.…
Danny Bravo
  • 4,534
  • 1
  • 25
  • 43
1
vote
2 answers

Counting audio power peaks iOS

Edited the question due to progressive insights :-) I am creating an app that is listening to the audio input. I want it to count peaks. (peaks will be at a max frequency of about 10 Hz.) After a lot of searching, I ended up using the AudioQueue…
1
vote
1 answer

Getting accurate time from FFMPeg with Objective C (Audio Queue Services)

My iPhone app plays an audio file using FFMPeg. I'm getting the elapsed time (to show to user) from the playing audio (in minutes and seconds after converting from microseconds, given by FFMPeg) like so: AudioTimeStamp…
neowinston
  • 7,584
  • 10
  • 52
  • 83
1
vote
2 answers

Play and render stream using audio queues

I'm currently playing a stream on my iOS App but one feature we'd like to add is the visualization of the output wave. I use an output audio queue in order to play the stream, but have found no way to read the output buffer. Can this be achieved…
Rodolfo Cartas
  • 136
  • 1
  • 6
1
vote
2 answers

Passing AudioQueueBufferRef data to FFT function!

I am trying to compute the frequency of a given sound process through the microphone on the iphone. I've read all the post about FFT (including all apple code examples e.g aurioTouch,SpeakHere), but not solution to this problem. I'm using…
Adrian Avendano
  • 1,091
  • 1
  • 9
  • 13