Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Deinterleave using ExtendedAudioFile



Just get the converter from the ExtAF object and away you go

On 20/03/2007, at 6:38 AM, David Paterson wrote:

As I drove home last night I thought about this more and realized I misunderstood what you were saying here.  This is deceptively simple and elegant, but it still leads me to a question.  I see clearly in the header files how to set the channel map if I am using AudioConverter, but there is no obvious way to do it if I am using ExtendedAudioFile.  In ExtendedAudiFile I can set Channel Layout tags - but they don't seem to help much.

Again, thanks for any help.

David Paterson


On Mar 19, 2007, at 6:27 PM, William Stewart wrote:

You can use the ExtendedAudioFile API (see the ConvertFile code in /Developer/Examples/CoreAudio/SimpleSDK/)

The only bit not covered in this is using the channel map property (to say which channel you do/don't want). So in the case of the mono file, this would be 1 UInt32 int, with either 0 (the first channel) or 1 (the second channel) to come from the file for your mono file

Bill

On 16/03/2007, at 4:18 PM, David Paterson wrote:

I know I am going to feel stupid.  Everywhere I search it implies that this is easy but I can not figure out how to do it.  I simply want to take an interleaved stereo file and convert it to 2 mono files.  I tried looking at afInterleave to see if I could reverse the process - but I couldn't figure it out.  If anyone can point me in the right direction I would greatly appreciate it.


David Paterson


 _______________________________________________
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

-- 
tel: +1 408 974 4056
__________________________________________________________________________
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
__________________________________________________________________________


 _______________________________________________
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

-- 
tel: +1 408 974 4056
__________________________________________________________________________
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
__________________________________________________________________________

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/coreaudio-api/email@hidden

This email sent to email@hidden

References: 
 >Deinterleave using ExtendedAudioFile (From: David Paterson <email@hidden>)
 >Re: Deinterleave using ExtendedAudioFile (From: William Stewart <email@hidden>)
 >Re: Deinterleave using ExtendedAudioFile (From: David Paterson <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.