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

Re: ExtAudioFileRead


  • Subject: Re: ExtAudioFileRead
  • From: William Stewart <email@hidden>
  • Date: Fri, 6 Aug 2010 18:04:50 -0700

You can set the client format of the ext audio file to be a de-interleaved format. That means that (lets say you have a stereo file) you pass a buffer list to ExtAudioFileRead that contains 2 buffers, 1 for each channel. Then you have each channel as you read it in a separate buffer. You can then do what you like with the separate channel data.

Bill

On Aug 3, 2010, at 2:07 PM, Edwards, Waverly wrote:

I am unfamiliar with a planar audio format.  I had someone offline state audio is stored in an interleaved format.

I now understand how that works, as I did not have this understanding before.

 

I thank you very much for helping my understanding of how the data is presented.

 

 

W.

 


From: Jean-Daniel Dupas [mailto:email@hidden]
Sent: Tuesday, August 03, 2010 3:13 AM
To: Edwards, Waverly
Cc: 'email@hidden'
Subject: Re: ExtAudioFileRead

 

 

Le 3 août 2010 à 01:12, Edwards, Waverly a écrit :



 

I’ve been going through the documentation and something is not clear to me.  When using

ExtAudioFileRead to read from a file into a buffer, how do you separate the left channel from the right?

I am working to read a stereo wav file into memory but as I read it, I am reading the file into a single buffer.

I’ve been unable to see where you would read the left and right channels.  I looked at AudioFileReadPackets

also, since I wish to read the file into memory but may not wish to read the entire file into memory. Unfortunately,

I seem to have encountered the same issue of not being able to see how to separate the left from the right since

there is only one buffer. 

 

 

Usually, audio is stored using an interleaved format. 

If you want planar audio format, you have to tell it explicitly by setting the client stream description property of your ExtAudioFile.

 

 

-- Jean-Daniel

 

 

 

 

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: 
 >ExtAudioFileRead (From: "Edwards, Waverly" <email@hidden>)
 >Re: ExtAudioFileRead (From: Jean-Daniel Dupas <email@hidden>)
 >RE: ExtAudioFileRead (From: "Edwards, Waverly" <email@hidden>)

  • Prev by Date: Re: AUNodeInteraction fields
  • Next by Date: Application audio buffer
  • Previous by thread: RE: ExtAudioFileRead
  • Next by thread: Re: ExtAudioFileRead
  • Index(es):
    • Date
    • Thread