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

Re: Deinterleave using ExtendedAudioFile


  • Subject: Re: Deinterleave using ExtendedAudioFile
  • From: Aulis Telle <email@hidden>
  • Date: Tue, 20 Mar 2007 17:30:39 +0100

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.

You simply extract the underlying AudioConverter from the ExtendedAudioFile


UInt32 size = sizeof(AudioConverterRef);
AudioConverterRef theConverter;
ExtAudioFileGetProperty(myAudioFile,
kExtAudioFileProperty_AudioConverter,
&size,
&theConverter);


Now you can set the channel map of the AudioConverter:

AudioConverterSetProperty(theConverter, kAudioConverterChannelMap,
    sizeof(channelMap), channelMap);

Be sure to also set kExtAudioFileProperty_ConverterConfig on the audio file afterwards to give it the chance to synchronize with the new settings (see documentation of kExtAudioFileProperty_AudioConverter for more details).

CFPropertyListRef config = NULL;
ExtAudioFileSetProperty (myAudioFile,
                                 kExtAudioFileProperty_ConverterConfig,
                                 sizeof (CFPropertyListRef),
                                 &config);

I hope that helps.

Aulis




_______________________________________________ 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: 
 >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>)

  • Prev by Date: Re: CPU at 100% [Was: AAC and AudioConverter error : '!pkd']
  • Next by Date: Re: what would cause QTSetComponentProperty to fail with a kAudioUnitErr_InvalidPropertyValue err?
  • Previous by thread: Re: Deinterleave using ExtendedAudioFile
  • Next by thread: { shameless plug } SonicBirth now open-source, looking for developers
  • Index(es):
    • Date
    • Thread