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

Re: AudioConverterGetProperty and kAudioConverterChannelMap


  • Subject: Re: AudioConverterGetProperty and kAudioConverterChannelMap
  • From: Doug Wyatt <email@hidden>
  • Date: Sun, 29 May 2005 08:02:23 -0700

On May 28, 2005, at 10:41, Jake Goulding wrote:
I am involved with a project that makes use of CoreAudio to encode raw PCM into various formats. The channel layout for the source doesn't map directly to the layout for the CoreAudio encoder, so I was using AudioConverterGetProperty with kAudioConverterChannelMap to set the layout of the streams.

Steps I've followed:
1) Make two ASBDs with 6 channels
2) Make a new AudioConverter to convert between the two
3) Ask for the channel map of the AudioConverter

[continue converting as usual]
audio comes out garbled (clicking in the channels)
If I remove step 3: audio is fine.

Any ideas?

How big is the memory chunk you're passing to AudioConverterGetProperty? Safest is to call AudioConverterGetPropertyInfo first to find out how big a buffer you need to allocate and pass to GetProperty. If the buffer you're passing isn't large enough, memory past the end of it will get corrupted.


But don't you want to be calling AudioConverterSetProperty to *change* the channel map?

Doug

_______________________________________________
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: 
 >AudioConverterGetProperty and kAudioConverterChannelMap (From: Jake Goulding <email@hidden>)

  • Prev by Date: audio units - question about conv and splitting load
  • Next by Date: CAAudioFile bug
  • Previous by thread: AudioConverterGetProperty and kAudioConverterChannelMap
  • Next by thread: audio units - question about conv and splitting load
  • Index(es):
    • Date
    • Thread