Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Simple Audio Player
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple Audio Player



If you just need to play back the files, you can use AVAudioPlayer in AVFoundation; it will mix multiple files and you can control the volume, playback position of each file

This is from the core audio group, and we like to think of it as one of our offerings, so we can put the words "Core Audio" and "easy" in the same sentence ;P

Otherwise, what Jens said.

Bill

On Feb 9, 2009, at 5:19 PM, Jens Alfke wrote:


On Feb 9, 2009, at 4:54 PM, Gabriele Palmas wrote:

I'm a beginner working with CoreAudio and iPhone and I would like to
make a very easy coreAudio chain in an iPhone app.

"Easy" and "CoreAudio" can't be used in the same sentence. :P CoreAudio is very powerful, very complex, and under-documented. Be prepared for a steep learning curve, APIs with millions of tiny little pieces, and puzzling things out from sample code rather than reading high-level documentation.


I'm stuck at the very beginning of the process: open the audio files
and make my audio buffers.

/Developer/Examples/CoreAudio is where all the good stuff is. Look at SimpleSDK/PlayFile, which creates a simple AUGraph to play audio from a file. (However, I'm unsure of whether all this stuff, like AUGraph, is available on iPhone...)


For just reading samples from arbitrary audio files, the API you want is <AudioToolbox/ExtAudioFile.h>. There are several examples that show how to use it, such as ConvertFile.

—Jens _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Coreaudio-api mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Simple Audio Player (From: Gabriele Palmas <email@hidden>)
 >Re: Simple Audio Player (From: Jens Alfke <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.