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

Format error setting up AudioQueue for recording, but only happens once in a while

So oddly, this error happens only once in a while, when we are setting up the audio queue (even though I'm doing everything the same way). Device iPhone 5, iOS8.3: mediaserverd[37] : 15:14:24.594 ERROR: [0x2883000] >aq> 323:…
Fraggle
  • 8,607
  • 7
  • 54
  • 86
0
votes
1 answer

Audio Queue total received bytes during recording

I used Apple`s SpeakHere sample code. Here are my mRecordFormat: mRecordFormat.mFormatFlags = kLinearPCMFormatFlagIsSignedInteger | kLinearPCMFormatFlagIsPacked; mRecordFormat.mChannelsPerFrame = 1; mRecordFormat.mBitsPerChannel =…
David V
  • 2,134
  • 1
  • 16
  • 22
0
votes
1 answer

Prevent Objective-C object called from C++ code being released

Here is my situation: I'm using Audio Queue Services in order to record sound. When the callback function is called (as soon as the buffer is full), I send the buffer content to an objective-C object to process it. void…
g0tcha-
  • 323
  • 3
  • 5
0
votes
1 answer

AudioFileReadPackets to an array?

I'd like to read packets from an audio file, but I don't want to send them to a playback buffer. I just want to get an array of the packets, ideally as floats. I've prepped the audio and then want to call: OSStatus err = AudioFileReadPackets…
Eric Christensen
  • 819
  • 3
  • 9
  • 21
0
votes
1 answer

MP3 stream record, flat line in waveform record glitch

I record audio streams as byte sequence, for playing via https://github.com/mattgallagher/AudioStreamer. If i play mp3 stream from URL it plays fine, but if i play it from local file it has glitches, i opened file in audio editor, i see flat lines…
Sergey92zp
  • 589
  • 4
  • 22
0
votes
1 answer

Obj-C objects not being released in a C callback function

I am using the AudioFileOpenWithCallbacks function in my app to provide MP3 data in chunks. I call the function as follows: AudioFileOpenWithCallbacks((__bridge void *)(self), TTMAudioFile_ReadProc, NULL, TTMAudioFile_GetSizeProc, NULL, 0,…
0
votes
3 answers

Objective-c - How to serialize audio file into small packets that can be played?

So, I would like to get a sound file and convert it in packets, and send it to another computer. I would like that the other computer be able to play the packets as they arrive. I am using AVAudioPlayer to try to play this packets, but I couldn't…
vfn
  • 6,026
  • 2
  • 34
  • 45
0
votes
0 answers

Record audioqueue result to audio file

I use https://github.com/mattgallagher/AudioStreamer for playing stream, it use AudioQueue to play stream. I want to record result of playing, i read AudioQueueProgrammingGuide but as i see we can use only microphone on device to record audio via…
Sergey92zp
  • 589
  • 4
  • 22
0
votes
0 answers

Decoding Speex audio and playing decoded PCM data using AudioQueues

I am getting audio stream data in Speex format. I tried compiling ffmpeg for Speex for Speex decoding. I am getting errors when compiling ffmpeg which can be seen in this link. So I used another option of using this framework for decoding Speex…
user2955351
  • 273
  • 4
  • 18
0
votes
2 answers

Playing PCM data using Audio Queues

I have reffered to this to play a PCM file using Audio Queues. The code is as follows: #import "PlayPCM.h" AudioFileID audioFile; SInt64 inStartingPacket = 0; AudioQueueRef audioQueue; @implementation PlayPCM void AudioOutputCallback( …
user2955351
  • 273
  • 4
  • 18
0
votes
1 answer

Can not get IOS InputAudioQueue to work (Very Simple Example)

I am doing some testing and learning on IOS audio queue service I get a -50 osstatus when I try to create a new InputAudioQueue , what am I doing wrong? I read apple AudioQueue service reference a couple of times , and read the function docs but I…
0
votes
1 answer

Crash in release, but not debug

I am writing an app that uses Audio Queue Services to play music. When it gets to the end of one song, it should move on to the next. It works fine in the debug scheme, but it crashes in the release scheme Process: xxx [1136] Path: …
jsd
  • 7,673
  • 5
  • 27
  • 47
0
votes
2 answers

Problems on iOS (Objective-C) playing AAC files in AudioQueue

this is my first post here, I hope you can help me with this. I'm working on this code to get an AAC playback based on AudioQueue, I tested this with WAV format, and it works. The thing happens when I put either a .CAF or .M4A file and then I…
0
votes
1 answer

After interruption, delayed audio route change notifications when recording

My iPhone application requires that I know when a user has/has not plugged in her headphones. That's easy. AudioSessionAddPropertyListener with a callback listening to kAudioSessionProperty_AudioRouteChange. I write logs with NSLog as things happen.…
Frank Shearar
  • 17,012
  • 8
  • 67
  • 94
0
votes
1 answer

Audio Queue: Timestamps for recorded buffers

I am trying to grab times out of recorded buffers in my AudioInputCallback function for a recording queue. Unfortunately the timestamps I'm seeing aren't as expected. Here's an example (using AudioTimeStamp.mHostTime): 2010-01-21 14:03:35.252…
sehugg
  • 3,615
  • 5
  • 43
  • 60