I have an iOS app that receives an AAC file over the network into an NSData buffer, and I would like to convert the received file to LPCM.
I saw the example in chapter 6 of the Core audio book using the Audio File services API. This does what I want except for one thing; it expects the AAC file data to be in a file.
I could possibly save the received AAC bytes that from the NSData object into a file and then use the example from the CoreAudio book. However, I would like to avoid that step as I really have no use for that file apart from that conversion. It seems like a waste and it would also increase the latency for the AAC to LPCM conversion.
When I looked at the Audio File Services document,
I saw this line:
This document describes Audio File Services, a C programming interface that enables you to read or write a wide variety of audio data to or from disk or a memory buffer.
But when I looked at the documentation, the functions seems to require a file id. They appear to be memory to file or file to memory conversions, and not memory to memory (I know that you can do memory to memory conversions from one LPCM format to another, but that is not what I need).
Is there any way to do this conversion without using a file as a staging area?
Richard
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