iPhone AudioQueueOfflineRender() woes
iPhone AudioQueueOfflineRender() woes
- Subject: iPhone AudioQueueOfflineRender() woes
- From: Danny Sung <email@hidden>
- Date: Thu, 12 Mar 2009 01:56:04 -0700
Okay, so I've been wracking my head against this for about a week now
and I still can't figure it out. Does anyone have any references as to
how to actually use AudioQueueOfflineRender() to do file conversions (to
LPCM)?
The documentation says this is possible, and a few people on the lists
have alluded to being successful at this. But I can't find any
description on how to actually do this.
I've tried a number of things (replacing AudioQueueStart with
AudioQueSetOfflineRenderFormat, or simply calling the latter after the
former, etc.). I've tried doing the AudioQueueOfflineRender() call in
the playback callback. I've also tried to tie a playback together with
a recording Queue to see if that would work. But I ended up just
recording from the microphone.
The best I seem to get is 0 result codes to all the calls... but I also
get all 0's in my rendered data. The other half of the time it seems
that AudioQueueOfflineRender() returns values that's not in the
documentation at all (like -50 or -66627).
Can anyone point me in the right direction? I'd be happy to post the
code I've got (it's largely based off of the SpeakHere example), with
just a few minor tweaks.
For reference, I did come across this guy having exactly the same issue:
http://discussions.apple.com/message.jspa?messageID=7635006#7635006
But I couldn't glean any additional info from his message or the link he
adds.
I'm also using the Audio Queue Services Programming Guide dated 2007-10-31.
If anyone knows anything or perhaps if there's a better way to convert
to LPCM, I'd really appreciate the info. =)
Thanks,
Danny
_______________________________________________
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