core-audio

How to record something other than Linear PCM on iPhone...

Hi, I'm having a hard time trying to record something other than linear PCM on the iPhone :-( The samples I've found (SDK's SpeakHere, Zdziarski's and Sadun's books and the one at trailsinthesand.com) all use linear PCM but I'd like a commonly used compressed format instead (no ima4 or whatever the name is...). I just cannot figure out...

CoreAudio AudioQueue i/o redirect to/from phone app?

I've been reading up on some of the iPhone audio services in considering an audio recording/playback app, but ideally I'd like to be able to use the other end of a phone connection as inputs and outputs, i.e. remote speaker and remote microphone via cellular (or VoIP, but for now cellular's the question), when it's on, as input and outpu...

Can I use Core Audio effects on the iPhone ?

I know that a subset of Core Audio is available in the iPhone OS, but I don't know how much of all the effects / filters is available. If it is available, I would like to get some directions on how to apply some simple effects over an audio unit (delay, echo etc...). ...

Best way to learn iphone audio queue services, step by step tutorial

I'm trying to learn how to handle audio at a fairly low level with audio queue services. I have been progrmaing in memory managed languages for quite a while, and have just completed the c programing tutorial by vtc (2007). This has left me comfortable with the understanding of pointers and memory allocation, but the apple documention ...

Creating ADTS frame on iPhone.... problem

Hello all, I am getting raw aac data from web stream and try to put it in ADTS frame in order to play it on iPhone. It works for 10 seconds then sound stops and restart but seems accelerated or mixed with others audio data. Quicktime and others audio app are unable to open my file. It seems my ADTS header is wrong but I am unable to...

AudioQueue buffer size for streaming aac audio

Hello, I am playing MP3 audio form a network stream and sometimes gaps are present when using WIFI connection. I decrease the buffer size, but I am wondering what is the best method for calculating buffer size. My MP3 stream is 64 Kbits. I am using 3 buffers, for 64 *1024 each. PacketDescriptions is 512 Thanks a lot Thierry ...

Convert .caf to .mp3 on the iPhone

Hello, is there a way to convert my recorded .caf files to .mp3 using the iPhone SDK / Core Audio, something else? I've been looking around for a while, but all I've found was a command line uitility (which isn't allowed to run on the iPhone). Regards ...

How to get bitrate of audio file in cocoa

I need to get bitrate information from audio files, for some reason AudioFileGetProperty function with kAudioFilePropertyBitRate constant always returns 0 for me. The same with kAudioFilePropertyInfoDictionary, the resulting dictionary doesnt contain bitrate info. I would try to manualy get this from raw data in case of mp3, but I need t...

Change pitch of audio during playback on iPhone

What is the best way to accomplish this? From what I have read so far, it seems you have to setup IO Remote (which is a pain itself). Do you need to do a FFT? Are there any examples out there? Can I just speed up / slow down playback? Thanks ...

Record "Apple lossless" audio on the iPhone

Hello, could you point me to docs/snippets/blogs, which explain how to record Apple lossless audio files on the iPhone, please? I've inspected the audio recorder example from the Apple Dev Center, but couldn't figure out, which setting I have use for lossless audio. Regards, Stefan ...

How to program a real-time accurate audio sequencer on the iphone?

Hi... I want to program a simple audio sequencer on the iphone but I can't get accurate timing. The last days I tried all possible audio techniques on the iphone, starting from AudioServicesPlaySystemSound and AVAudioPlayer and OpenAL to AudioQueues. In my last attempt I tried the CocosDenshion sound engine which uses openAL and allows...

programmatically recording sound sent to Built-in Output, Mac OS X

I have a conundrum: I need to find a way to capture the raw audio data that is being piped to the Built-in Output on Mac OS X. Core Audio, HAL, etc. I can "listen" in on the Built-in Output and the mic, but neither of these appear to offer the correct data stream - the exact stream (all combined data from all input sources) that goes ...

Halting a playing sound sample on iPhone using AudioServices

I am implementing a sound effect that plays while a user is dragging a UISlider. Here is the IBAction: called by the UISlider's Value Changed event -(IBAction)playTone4; { AudioServicesPlaySystemSound(soundID4); } I would like the sound to halt when the user is not dragging the slider but has not released it. Is there a way to ...

AVAudioPlayer sound on iPhone stops looping unexpectedly: How to debug?

I am implementing a sound effect that plays while a user is dragging a UISlider. In a previous question, I used AudioServicesPlaySystemSound() but that type of sound can't be halted. I need the sound to halt when the user is not actively dragging the slider but has not released it. Now I am creating a sound using an AVAudioPlayer objec...

Modify SpeakHere to record audio played on device

Could someone explain to me how I could modify Apple's SpeakHere iPhone sample code to record audio being played on the device rather than audio being inputted through the mic. ...

AudioQueueOfflineRender questions

I have a few questions about this after reading the iPhone documentation on it: Does this take the audio being played and save it to a buffer so it can be written to a file? If so does the audio being played have to be played using a playback audio queue or can it be played via a higher level class such as AVAudioPlayer. Can anyone poi...

Override ringer volume in iPhone apps

I have built an app that plays lots of sounds the easy way: AudioServicesPlaySystemSound(someSoundID); When I use the device volume buttons to increase or decrease the volume, the volume I actually change is the phone's ringer volume. So if you decrease it and exit the app then your phone will ring quietly... Is there an easy way to ...

Getting audio/video device names and GUIDs in Mac OS X

I'm trying to script an audio/video capture application that requires me to specify both a name (eg: Built-in Microphone) and an ID (eg: AppleHDAEngineInput:1) to identify the device. The problem I'm having is that in my existing application, I only have access to the name of the device (e.g. Built-in Microphone or USB Video Class Video...

Play pure tones in Cocoa Touch

I've seen countless infos on how to play a sound file, but how can I generate a specific audio tone (or several) at given Hertz in cocoa touch? ...

Getting notified when a sound is done playing in OpenAL

I'm using OpenAL on iPhone to play multiple audio samples simultaneously. Can I get OpenAL to notify me when a single sample is done playing? I'd like to avoid hardcoding the sample length and setting a timer. ...