Re: AudioQueueOfflineRender question
Re: AudioQueueOfflineRender question
- Subject: Re: AudioQueueOfflineRender question
- From: K Staring <email@hidden>
- Date: Thu, 31 Jul 2008 22:02:00 +0200
Hi,
Maybe I had the whole process thought out backwards.. How should
AudioQueueOfflineRender() work, precisely? I'm having some trouble
determining which function will supply and receive what kind of data.
Is it like this?
- in an outputcallback of AudioQueue 'readAudioQueue':
- read compressed data with AudioFileReadFrames() into an AudioBuffer
owned by 'decompressAudioQueue'
- feed this buffer to AudioQueueOfflineRender(decompressAudioQueue)
- AudioQueueOfflineRender() calls outputcallback of AudioQueue
'decompressAudioQueue' with an AudioBuffer containing the
decompressed data
- 'decompressAudioQueue' rendercallback can do something
with the decompressed data
Or like this?
- in an outputcallback of AudioQueue 'readAudioQueue':
- read compressed data with AudioFileReadFrames() into an AudioBuffer
owned by 'decompressAudioQueue'
- feed this buffer to AudioQueueOfflineRender(decompressAudioQueue)
- AudioQueueOfflineRender() renders data back into its supplied
buffer using no 'decompressAudioQueue' outputcallback
- outputcallback now has uncompressed data in buffer fed to
AudioQueueOfflineRender() and can doe something with the
decompressed data
Of finally, like this? (my original setup which I can't get to work)
- in an outputcallback of AudioQueue 'readAudioQueue':
- feed a buffer owned by decompressAudioQueue with undefined data to
AudioQueueOfflineRender(decompressAudioQueue)
- AudioQueueOfflineRender(decompressAudioQueue) calls outputcallback
of AudioQueue 'decompressAudioQueue' with its supplied buffer
- outputcallback of AudioQueue 'decompressAudioQueue' reads
compressed data with AudioFileReadFrames() into its supplied
buffer
- AudioQueueOfflineRender(decompressAudioQueue() decompresses audio
from its supplied buffer into its supplied buffer
Can anyone tell me which one is correct? Or did I have it wrong 3 times
now? ;)
Thanks,
Khamba Staring
_______________________________________________
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