• 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: 3D Mixer Equal Power Panning - Follow up on panning
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 3D Mixer Equal Power Panning - Follow up on panning


  • Subject: Re: 3D Mixer Equal Power Panning - Follow up on panning
  • From: James McCartney <email@hidden>
  • Date: Tue, 17 Apr 2007 11:34:06 -0700


On Apr 17, 2007, at 11:29 AM, James McCartney wrote:

AudioChannelLayout *acl = (AudioChannelLayout*)calloc(1, sizeof(AudioChannelLayout) + 2 * sizeof(AudioChannelDescription));

acl->mChannelLayoutTag = kAudioChannelLayoutTag_UseChannelDescriptions;

acl->mNumberChannelDescriptions = 3;

acl->mChannelDescriptions[0].mChannelLabel = kAudioChannelLabel_Ambisonic_W;

acl->mChannelDescriptions[1].mChannelLabel = kAudioChannelLabel_Ambisonic_X;

acl->mChannelDescriptions[2].mChannelLabel = kAudioChannelLabel_Ambisonic_Y;

UInt32 propertySize = sizeof(acl);

OSStatus err = AudioFileSetProperty(afid, kAudioFilePropertyChannelLayout, propertySize, acl);

free(acl);


...never write code in email
should be more like this:

UInt32 propertySize = sizeof(AudioChannelLayout) + 2 * sizeof(AudioChannelDescription);
AudioChannelLayout *acl = (AudioChannelLayout*)calloc(1, propertySize);
acl->mChannelLayoutTag = kAudioChannelLayoutTag_UseChannelDescriptions;
acl->mNumberChannelDescriptions = 3;
acl->mChannelDescriptions[0].mChannelLabel = kAudioChannelLabel_Ambisonic_W;
acl->mChannelDescriptions[1].mChannelLabel = kAudioChannelLabel_Ambisonic_X;
acl->mChannelDescriptions[2].mChannelLabel = kAudioChannelLabel_Ambisonic_Y;
OSStatus err = AudioFileSetProperty(afid, kAudioFilePropertyChannelLayout, propertySize, acl);
free(acl);


 _______________________________________________
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: 
 >NxM-Effects in Logic (From: Stefan Huber <email@hidden>)
 >Re: NxM-Effects in Logic (From: Stefan Gretscher <email@hidden>)
 >Re: NxM-Effects in Logic (From: William Stewart <email@hidden>)
 >3D Mixer Equal Power Panning (From: Bob Lang <email@hidden>)
 >Re: 3D Mixer Equal Power Panning (From: William Stewart <email@hidden>)
 >Re: 3D Mixer Equal Power Panning (From: Bob Lang <email@hidden>)
 >Re: 3D Mixer Equal Power Panning - Follow up on panning (From: Bob Lang <email@hidden>)
 >Re: 3D Mixer Equal Power Panning - Follow up on panning (From: William Stewart <email@hidden>)
 >Re: 3D Mixer Equal Power Panning - Follow up on panning (From: Richard Dobson <email@hidden>)
 >Re: 3D Mixer Equal Power Panning - Follow up on panning (From: Shawn Erickson <email@hidden>)
 >Re: 3D Mixer Equal Power Panning - Follow up on panning (From: William Stewart <email@hidden>)
 >Re: 3D Mixer Equal Power Panning - Follow up on panning (From: James McCartney <email@hidden>)

  • Prev by Date: Re: 3D Mixer Equal Power Panning - Follow up on panning
  • Next by Date: Re: Coreaudio-api Digest, Vol 4, Issue 108
  • Previous by thread: Re: 3D Mixer Equal Power Panning - Follow up on panning
  • Next by thread: Re: 3D Mixer Equal Power Panning - Follow up on panning
  • Index(es):
    • Date
    • Thread