core-audio

Starting with the Core Audio framework

For a project that I intend to start on soon, I will need to play back compressed and uncompressed audio files. To do that, I intend to use the Core Audio framework. However, I have no prior experience in audio programming, and I'm really not sure where to start. Are there any beginner level resources or sample projects that can demonstr...

Slowing down the playback speed of an audio file.

I'm trying to do is slow down the audio in an audio file I'm playing programmatically using the iPod player in an app. I've read that this is possible now in iOS 4 (supposedly they gave us access to the raw sound data from songs in the iPod library, which makes no sense to me given the DRM situation), and I've looked through the new API...

iPhone SDK: Is it possible to process audio file from local library

Well, I will try best not to make it as a 'I just want the code' question... I'm recently working on a project which requires some audio signal processing from local music files (e.g. iTunes Library). The whole work includes: Get the PCM data of an audio file (normally from iTunes library); <--AudioQueue (?) Write the PCM data to a ...

AVPlayer vs. AVAudioPlayer

The documentation for AVPlayer states the following: [The] player works equally well with local and remote media files However, the documentation for AVAudioPlayer states the following: Apple recommends that you use this class for audio playback unless you are playing audio captured from a network stream For the work I am doi...

Audio Session "Ducking" Broken in iOS 4...?

Hello all, I've an app which uses the MPAudioPlayerController to access the iPod music library, and an AVAudioPlayer to overlay audio on top of the music. I've used this documentation as a guide. Specifically: Finally, you can enhance a category to automatically lower the volume of other audio when your audio is playing. This could...

CoreAudio: recording sound from other apps

I'm thinking about creating a plugin for jailbroken iPhones to record audio from apps. Because I'm new to CoreAudio I want to ask first if that would be possible? (so I don't invest dozens of hours in CoreAudio without even having a chance to do what I want ;)) So what do you guys think? Any tips? Thanks in advance! ...

iPhone: Change playback speed with Audio Units

What are the different ways to change the playback speed of audio on the iPhone, when using Audio Units? What are the advantages / disadvantages of each solution? I have a mixer unit and an IO unit. Do I need to add another unit (eg. converter unit)? What audio unit parameters should I set, on which (input or output) bus on which audio ...

Example of using Audio Queue Services.

Hi, I am seeking an example of using Audio Queue Services. I would like to create a sound using a mathematical equation and then hear it. Thanks. Sagiftw ...

record live streaming audio

Hi guys I'm actually making an app which has to play and record streaming audio from internet on ipad. The streaming of the audio is done, I will have to come to the recording part very soon and I don't have any idea on how to proceed. Could you give me a hint??? Idea? It will have to play while simultaneously recording into AAC or MP3...

How to measure how hard someone is whistling into iPhone mic?

I'd like to do an application that detects if someone is blowing/whistling into an iPhone mic. Something like Ocarina by Smule. Any code examples / tutorials on that subject? ...

What is the Mac equivalent of AVAudioPlayer?

Hi, I am porting an iPhone app to Mac. On iPhone I use AVAudioPlayer for playing sounds, but it doesn't exist on Mac. What would be the Mac equivalent for playing audio (hopefully as simple as AVAudioPlayer so I can port my app easily)? Additionally, are there any open source libraries / samples / wrappers available for playing music ...

Record Sound in Cocoa Example Please!

Hi, I've been scouring both this site and the net in general for an example cocoa app that uses QTKit or Audio Queue and actually works. Unfortunately, I can't find anything that fits the above description. All I want to do is get a simple audio recording app so I can learn how it works! Please, I have put alot of time into this alre...

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...

How to check whether a music is playing or paused in AudioQueue

Hi, I am using AudioQueueStart for playing music and AudioQueuePause for pausing. Is there any way in AudioQueues to check whether the music is playing or not, I want to Pause music only if it is playing. ...

How to control treble, bass, volume on Iphone/ipad

Hello I need some help/hints on how to control the ipad's volume, how to control the bass and treble in xcode for an iphone app. Thanks ...

How to check current time and duration in AudioQueue

Hi, How to get total time duration of music in audioQueue. I am using NSTimeInterval AQPlayer::getCurrentTime() { NSTimeInterval timeInterval = 0.0; AudioQueueTimelineRef timeLine; OSStatus status = AudioQueueCreateTimeline(mQueue, &timeLine); if(status == noErr) { AudioTimeStamp timeStamp; AudioQu...

Outputting sound using multiple audio routes at the same time in an iPhone App?

Hello, I'm playing around with audio routes in AVAudioSession at the moment and I'm wondering whether it is possible to output sound to multiple audio routes at the same time i.e. a sound playing from the speaker and a different sound playing in the headphones? Ideally I'd like to be able to play separate sounds via a dock connector (us...

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...

Progressive download using Matt Gallagher's audio streamer

I'm a completely n00b when talking about audio. I'm using Matt Gallagher's audio streamer on my radio app. How may I use progressive download? Also, ExtAudioFile is a good idea too :) Edit: Used this: length = CFReadStreamRead(stream, bytes, kAQDefaultBufSize); if(!data) data =[[NSMutableData alloc] initWithLength:0]; ...

Insert metadata on song on iOS

I'm developing an application that generates a MP3 file. I would like to insert metadata( name, artist and cover to be exact) on it. How may I do that? ...