Re: "Audio Queue Service Programming Guide"
Re: "Audio Queue Service Programming Guide"
- Subject: Re: "Audio Queue Service Programming Guide"
- From: Eric Wing <email@hidden>
- Date: Sat, 28 Aug 2010 18:09:15 -0700
On 8/28/10, GW Rodriguez <email@hidden> wrote:
> Let me start by mentioning that I am just now learning about core audio and
> have been trying to read the xcode documentation, as well as, other sources.
>
> I have read all the way through the Audio Queue Service Programming Guide
> documentation. I thought it was going really well, very understandable and
> laid out nicely. Then I tried to apply it. (queueMusicOfDoomAudioFile)
>
> In this section is clearly states and shows and example of the playback
> audio queue callback function. After inputing the code into a new project
> and I hit build I got about 15 errors. I went through my code char by char
> and everything was verbatim from listing 3-6 in the documentation.
>
> Im at a loss, how can I learn how to use these API's if the actual examples
> in the documentation gives me errors?
>
> rant = finished;
>
> So, without trying to write up all the errors I got and boring everyone on
> the list, is there any pointers (haha) that anyone can give me? Or is there
> some place I can find a work sample project of just playing an audio file
> from disk?
>
> return 0;
FYI, I ported the Audio Queues playback example as one of the 4
examples of doing background music for our demo game "Space Rocks!"
for our book. I recall there may have been a few errors in the sample
code, some constants that might not have been available on iPhone, and
I had to change all the runloop stuff to work with the existing game
architecture. But most of the original example was left intact and for
this example, I left Apple's listing numbers so the reader could
cross-reference with Apple's documentation.
(This was meant to be a quick example for the book because Apple
already had this example and I really needed to focus on the other
APIs which have less thorough examples: Media Player Framework,
AVAudioPlayer, and OpenAL.)
-Eric
--
Beginning iPhone Games Development
http://playcontrol.net/iphonegamebook/
_______________________________________________
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