audioqueue

How to pause recording using AudioQueues in iPhone ?

Hi All, I am using AudioQueue for recording voice. I want to know how can we pause the recording ? Thanks ...

AudioQueue on iPhone

Hi, Is there anyway to record the sound in slow manner using AudioQueues in Iphone(may be in call back function ?). Currently I am recording in Linear PCM with 22050 Hz. Basically I want to adjust the audio samples to match my video frame rate (which is 10 FPS). Thanks ...

audio not playing in audio queue

In my application i am using audio queue for recording and play back sound and also playing sound files in app. But when I try to play sound files down loaded from server with different sample rate its not playing any sound. Sound files can be very small about 1-2 seconds or less than that also. Its happening specially for short files. F...

AudioQueue in-memory playback example

Does anybody know of any examples using AudioQueue that play from an in-memory source? All the examples I can find play from files (using AudioFileReadPackets) but in my particular case I am generating the data myself in realtime so ideally, I want to enqueue the data myself rather than sucking it out of a file using the callback. Any ...

OS X Audio Queues in a 64-bit Environment Issues

I've recently ported my entire application to 64-bit and everything is working fine except for my audio recorder. Even though the correct parameters (such as sample rate) are being reported when I check the resulting file's information in Quicktime, the file either has consistent gaps, is playing at a much higher speed, or is playing at...

AudioQueue and iOS4?

The following code used to work for me in the past. I'm trying it now with iOS4 without luck. It is working in the simulator, but I don't hear anything on the device itself. I first try to record few samples into a NSMutableData variable, and then I try to play them back. I've tried the SpeakHere sample from Apple - which works (but it ...

AudioQueueStart() method can not play music in ios4 background

In the iphone 3.x platform, I use AudioQueueStart method to play music, but on ios4 platform, once the program into the background,then no sound, but I notice that the app is still running in background, I've added into the info.list UIBackgroundModes/Audio and applicationDidEnterBackground methods ...

AudioQueue code from SpeakHere fails on iPad.

I've using the SpeakHere audio classes in an App I'm creating that must Play & Record simultaneously. I'm using the newest SDK with a 3.2 device target in a universal app build (targeting iPad & iPhone). The app plays streaming movies using MPMoviePlayerController and Records audio simultaneously. This works 100% perfectly on an iPhon...

How to start Audio file from certain location using AudioQueue?

Hi All, I have analyzed "SpeakHere" sample code of iPhone dev forum. There is a code for starting AudioQueue as following.. AudioTimeStamp ats = {0}; AudioQueueStart(mQueue, &ats); But I have no idea that how to start middle of file. I changed AudioTimeStamp with various values include negative. But it does not works. Please let m...

AudioQueue does not output any sound.

I have trouble getting sound output on my iPhone experiment and I'm out of ideas. Here is my callback to fill the Audio Queue buffer void AudioOutputCallback(void *user, AudioQueueRef refQueue, AudioQueueBufferRef inBuffer) { NSLog(@"callback called"); inBuffer->mAudioDataByteSize = 1024; gme_play((Music_Emu*)user, 1024...

sync multiple audioqueues w. audiotimestamp

Hi, There is an existing thread about this dating from may 09. I need to be able to start the playback of several audioqueues with musically accurate timing, ie. as in a metronome. This is for Mac OS 10.5 or greater, not iphone. So far, I am creating the queues, priming the buffers using AudioQueueEnqueueBufferWithParameters. Then s...

iPhone SDK: Audio Queue not loud enough for me

I would like all the tricks into making the playback as loud as possible on my iPhone app. I'm recording using Audio Queue and am not sure if there is a way to make the input louder. On playback I'm setting the kAudioQueueParam_Volume parameter to 1.0. It's still not loud enough. There our apps that do kind of what I'm doing that are m...

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 later I execute: AudioQueueStart(audioQueue, NULL); Both calls return no errors but MyAu...

Does any one know how to modify the Speak Here Sample Code to record streaming audio?

Does anyone know how to modify the code Speak Here from Apple. I need to modify it to record streaming audio using Matt Gemmell AudioStreamer classes but somehow I can't find how to select the recording source... Could you help? ...

Playing two simultaneous m4a sounds with audioqueue

I need to mix two simultaneous looping m4a sounds for my application, and the only 100% reliable loop method i have come accross is using AudioQueue with this method: http://developer.apple.com/mac/library/qa/qa2009/qa1636.html However, when I initialize two instances of AudioQueue, I can only seem to get one instance playing. I know th...

iPhone playback AudioQueue stops/fails to continue after pausing at a breakpoint during debugging

For some reason, it seems that stopping at a breakpoint during debugging will kill my audio queue playback. AudioQueue will be playing audio output. Trigger a breakpoint to pause my iPhone app. Subsequent resume, audio no longer gets played. ( However, AudioQueue callback functions are still getting called.) ( No AudioSession or AudioQ...

How do I handle other audio playing, in light of multitasking, in iOS?

In the Audio Session Cookbook there is a section on "Checking if Other Audio is Playing During App Launch". I'm using MonoTouch (but feel free to give an Objective-C answer, the API is the same), so the code from that document looks something like this: bool otherAudioPlaying = AudioSession.OtherAudioIsPlaying; if(otherAudioPlaying) ...