• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Convert an in-memory AAC file to LPCM
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Convert an in-memory AAC file to LPCM


  • Subject: Convert an in-memory AAC file to LPCM
  • From: Richard <email@hidden>
  • Date: Wed, 24 Sep 2014 15:33:05 -0400

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,

https://developer.apple.com/library/ios/documentation/MusicAudio/Reference/AudioFileConvertRef/index.html

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

  • Follow-Ups:
    • Re: Convert an in-memory AAC file to LPCM
      • From: Chris Adamson <email@hidden>
  • Prev by Date: Re: logging coreaudio server plugin driver
  • Next by Date: Re: Convert an in-memory AAC file to LPCM
  • Previous by thread: Re: logging coreaudio server plugin driver
  • Next by thread: Re: Convert an in-memory AAC file to LPCM
  • Index(es):
    • Date
    • Thread