• 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
Re: IOS: is there a way to access songs from ITunes in LPCM?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IOS: is there a way to access songs from ITunes in LPCM?


  • Subject: Re: IOS: is there a way to access songs from ITunes in LPCM?
  • From: Chris Adamson <email@hidden>
  • Date: Fri, 17 Apr 2015 14:08:16 -0400

Use the MediaPlayer framework to get the song from the library, get its MPMediaItemPropertyAssetURL metadata property, pass that to the AVFoundation APIs (specifically, to AVAssetReader).

In a blog I wrote years ago <http://www.subfurther.com/blog/2010/12/13/from-ipod-library-to-pcm-samples-in-far-fewer-steps-than-were-previously-necessary/>, you can see how to use AVFoundation to do a format conversion to LPCM.

If you want to work on those buffers in memory with Core Audio, just take the CMSampleBuffers as they’re read, get their CMBlockBuffers, and then use the helper functions that convert block buffers to AudioBufferLists or AudioPacketStreamDescriptions.

—Chris

On Apr 17, 2015, at 1:49 PM, Andy Davidson <email@hidden> wrote:

Is there a way I can import songs or some how access songs that a user had downloaded to their device? I want to do some filtering and other processing on the raw audio

Thanks

Andy
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
References: 
 >IOS: is there a way to access songs from ITunes in LPCM? (From: Andy Davidson <email@hidden>)

  • Prev by Date: IOS: is there a way to access songs from ITunes in LPCM?
  • Next by Date: Is this true ?
  • Previous by thread: IOS: is there a way to access songs from ITunes in LPCM?
  • Next by thread: Is this true ?
  • Index(es):
    • Date
    • Thread