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
1
vote
1 answer

IOS reuse AudioQueueBuffer

I have found in many examples of AudioQueue, we always read audiofilepackets, and copy the audiodata to the inBuffer in callback function. I want to read audioData into my buffers at sometime before the audioQueueStart, and repeat the buffer…
1
vote
1 answer

Pause recording callback for AudioQueue

I have a basic doubt about AudioQueues, I am using AudioQueue to record and am basically following the SpeakHere app. I found out that whenever I pause recording using the api: AudioQueuePause on AudioQueue object, the recording is not paused…
1
vote
2 answers

How to slow down or speed up the playback of audio when using Audio Queue Services?

Is that possible? How is this done in theory? Would I simply make a very small buffer packet size and then delay the playback artificially? I assume that's the low-brain way? How could I do it in such a way that the sound is smooth and doesn't suck?
dontWatchMyProfile
  • 45,440
  • 50
  • 177
  • 260
1
vote
1 answer

playback raw pcm from network using AudioQueue in CoreAudio

I need to play raw PCM data (16 bit signed) using CoreAudio on OS X. I get it from network using UDP socket (on sender side data is captured from microphone). The problem is that all I hear now is some short cracking noise and then only…
foobar
  • 78
  • 8
1
vote
1 answer

Unexpected behavior with AudioQueueServices callback while recording audio

I'm recording a continuous stream of data using AudioQueueServices. It is my understanding that the callback will only be called when the buffer fills with data. In practice, the first callback has a full buffer, the 2nd callback is 3/4 full, the…
rcw3
  • 3,034
  • 1
  • 27
  • 24
1
vote
1 answer

Last AudioQueueBuffer has exagerated magnitudes

The one who solves this has to have the Sherlock Holmes trophy. Here it goes. I'm using AudioQueues to record sound (LPCM, SInt16, 4 buffers) In the callback, I tried measuring the mean amplitude by converting the samples to float and using…
Sergiu Todirascu
  • 1,367
  • 15
  • 23
1
vote
1 answer

Streaming audio from microphone in iPhone using Xamarin

Recording with AudioQueue and Monotouch static sound demonstrates how to get audio via an iPhone's microphone into an AudioQueue using Xamarin.iOS. My question is: how do I keep the microphone continuously recording? I basically want to keep the…
mrtnkrstn
  • 318
  • 5
  • 15
1
vote
1 answer

AudioQueueGetProperty returns out-of-range value for kAudioQueueProperty_CurrentLevelMeter property

I'm writing an application that requires the user be in a quiet environment. To do this, I periodically check the power reading off the microphone. (I'm aware of the returned value being in dBFS or, in this case, a float in the interval [0, 1]. ) My…
Frank Shearar
  • 17,012
  • 8
  • 67
  • 94
1
vote
1 answer

Audio Queue Services on iPhone only playing the first enqueued buffer?

I've been up all night trying to figure this one out. My code is basically the same as Apple's example here. However, the device plays only the FIRST buffer placed in the queue (I hear the contents of the first buffer when the app starts). After…
Andrew
  • 2,222
  • 16
  • 15
1
vote
1 answer

Audio Queue Service Example using How to record sound in mp3 format in iPhone

I am new in ios developement.I have downloaded sample audio recorder project from https://github.com/vecter/Audio-Queue-Services-Example using Audio Queue Service with the help of AudioToolBox framework .In that sample project recorded audio format…
Ravindhiran
  • 5,304
  • 9
  • 50
  • 82
1
vote
1 answer

AudioDataPacketCount returns ValueUnknown

I'm playing an AAC (kAudioFormatMPEG4AAC) file using iOS' Audio Queue Services. It's playing fine, so my code works. Now I'm looking into seek functionality. For this I need the total number of audio packets. When my property-listener-proc…
meaning-matters
  • 21,929
  • 10
  • 82
  • 142
1
vote
2 answers

Building better positional audio [AudioQueue manipulation]

I'm building an app that has a requirement for really accurate positional audio, down to the level of modelling inter-aural time difference (ITD), the slight delay difference between stereo channels that varies with a sound's position relative to a…
Henry Cooke
  • 2,563
  • 2
  • 23
  • 22
1
vote
1 answer

AudioQueueOfflineRender returning empty data

I'm having problems using AudioQueueOfflineRender to decode AAC data. When I examine the buffer after the call, it is always filled with empty data. I made sure the input buffer is valid and packet descriptions are provided. I searched and found…
hyn
  • 473
  • 7
  • 20
1
vote
1 answer

Is mBytesPerFrame needed in AudioStreamBasicDescription?

In AudioStreamBasicDescription struct: struct AudioStreamBasicDescription { Float64 mSampleRate; UInt32 mFormatID; UInt32 mFormatFlags; UInt32 mBytesPerPacket; UInt32 mFramesPerPacket; UInt32 mBytesPerFrame; UInt32 …
jAckOdE
  • 2,402
  • 8
  • 37
  • 67
1
vote
1 answer

Missing chunks when creating file with AudioQueue

So a .wav file has a few standard chunks. In most of the files I work with, the "RIFF" chunk is first, then a "fmt " chunk, then the "DATA" chunk. When recording using AVAudioRecorder, those chunks are created (although an extra "FLLR" is created…