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
0 answers

AudioQueueInputCallback called with empty buffer

I try to record PCM audio with iPhone microphone but when I start my audio queue it stop itself after call my callback function as many times as there is buffer. In my case 3 times. This is my code : class AudioModel { private var inQueue:…
1
vote
1 answer

AudioQueue callback in simulator but not on device

I am currently working on an audio processing app on iPhone. it is based on Apple's SpeakHere sample code, aims at real-time audio processing and playback. The code works well in simulator, but not callback when tested on device. The callback…
Manca
  • 147
  • 2
  • 13
1
vote
0 answers

Swift AudioToolbox not playing back audio file nor filling audio buffer

I am trying to play back an audio file using AudioToolbox. I wrote this and swift based on an old objective C example on the apple website. It compiles and runs, however the callback function never gets triggered once CFRunLoop starts. (It gets…
dmann200
  • 529
  • 4
  • 11
1
vote
1 answer

AudioQueueServices playback in background not working

Using AudioQueueServices to play a streaming MP3 file, the player stops when the app is switched to the background. I have: On the "Background Modes" panel of the "Capabilities" project settings page, I've turned on "Audio, AirPlay and Picture in…
Jules
  • 14,841
  • 9
  • 83
  • 130
1
vote
1 answer

How would I recognize the noise of a clap in an iPhone application?

Within my iPhone application, how would I recognize the noise that a clap makes?
1
vote
0 answers

Audio queue works not as expected in iOS 10

Update I resolved the problem in recording in iOS 10. After adding Audio Session configuration before starting recording, it works as normal. But playback hasn't been resolved. Here's the solution: NSError *error = nil; // the param category depends…
Silver
  • 77
  • 10
1
vote
1 answer

Saving last 30 seconds of audio in file using audio queue iOS api

I am using Audio Queue API for recording audio using buffers, I followed apple guide link .I want only last 30 seconds to be saved in the file in documents directory but this guide saves all the audio once a buffer if filled.
User31
  • 279
  • 3
  • 11
1
vote
1 answer

AudioQueue: Can't read raw data in AudioFileReadPackets

I'm working on a DSP related iOS app. Part of the work is to copy audio data from outBuffer ->mAudioData to an user-specified array for data processing. The read method is like this: OSStatus result = AudioFileReadPackets(myInfo->mAudioFile, //…
Manca
  • 147
  • 2
  • 13
1
vote
1 answer

Record and play using Audio Queues in iPhone

Can someone explain how we can use Audio Queue services to record sound from Microphone and play it live? Explain how we can achieve it. If possible give code snippets.
RK-
  • 12,099
  • 23
  • 89
  • 155
1
vote
0 answers

What is the data being hold in an AudioQueue buffer?

Can any one tell me what is the data being hold by an AudioQueue buffer in AudioQueue services? Are the samples are amplitudes? Float32 *samples = (Float32*)ioData->mBuffers[0].mData; I referred the link…
AbhiA
  • 15
  • 5
1
vote
1 answer

Synchronization of Multiple Audio Queues

The Audio Queue Documentation from Apple claims to have "Additional advanced features support scheduled playback and synchronization of multiple audio queues". However, no documentation for the same is found anywhere on the net. I have three Audio…
1
vote
3 answers

NSSound-like framework that works, but doesn't require dealing with a steep learning curve

I've pretty much finished work on a white noise feature for one of my applications using NSSound to play a loop of 10 second AAC-encoded pre-recorded white noise. [sound setLoops: YES] should be all that's required, right? It works like a charm but…
Frank R.
  • 2,328
  • 1
  • 24
  • 44
1
vote
1 answer

Problem with AudioQueueStart() on iPad

I am having the following problem with Audio Queue Services, and was hoping it sounded familiar to someone else. First I execute: AudioQueueAddPropertyListener(audioQueue, kAudioQueueProperty_IsRunning, MyAudioQueueIsRunningCallback, self); Then…
Kyle P
  • 11
  • 1
1
vote
0 answers

iOS AudioQueue input stops before all recorded data is flushed

I'm using an AudioQueue for iOS that is recording user audio data on a button press. When the user presses a button, it records. When he releases the button, it stops recording. However, the audio is cutting off prematurely. When the user presses…
Mikey A. Leonetti
  • 2,834
  • 3
  • 22
  • 36
1
vote
0 answers

Vibration on iOS not working with AQRecorder

So I want to add vibration to my iOS app. Simple enough: AudioServicesPlaySystemSound(kSystemSoundID_Vibrate); and of course: #‎import‬ But there is a catch - it won't work alongside AQRecorder in the same…
veich
  • 501
  • 1
  • 6
  • 15