• 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: ExtAudioFile Basics
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ExtAudioFile Basics


  • Subject: Re: ExtAudioFile Basics
  • From: Heinrich Fink <email@hidden>
  • Date: Wed, 18 May 2011 10:29:06 +0200

Hi Jens, 

Second question: as you can see below, I'm reading into a temporary byte/char buffer which is then converted into a float array. Is there a way to read float directly (I noticed the kAudioFormatIsFloat flag ...)?

Yes, that is possible. You can check out our simple wrapper class for an example implementation for that: 

https://github.com/hfink/matchbox/blob/master/Xcode/WordMatch/AudioFileReader.hpp
https://github.com/hfink/matchbox/blob/master/Xcode/WordMatch/AudioFileReader.cpp

This implementation is very similar to DiracLE implementation posted in this thread previously, with the following minor differences: 

It reads float directly, i.e. you don't have to deal with the float conversion by yourself
You can specify seek times in seconds
It's a C++ class

Be aware though there were a couple of problems reported regarding seeking within AAC compressed file, possibly due to some bug in the ExtAudioFile framework. (e.g. see http://lists.apple.com/archives/coreaudio-api/2011/Mar/msg00076.html) Reading consecutive float chunks should be no problem, though.

best regards, 

Heinrich
 _______________________________________________
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: 
 >ExtAudioFile Basics (From: Jens-Oliver Fischer <email@hidden>)

  • Prev by Date: I would like an advice
  • Next by Date: Re: Hiss Effect
  • Previous by thread: CA Examples
  • Next by thread: OMF import and export
  • Index(es):
    • Date
    • Thread