• 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
'Unsupported num channels' warnings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

'Unsupported num channels' warnings


  • Subject: 'Unsupported num channels' warnings
  • From: ipmlists <email@hidden>
  • Date: Mon, 29 Aug 2011 11:21:34 +0100

Hi,

I've written an effect AU, subclassing AUEffectBase, but overriding
ProcessBufferLists. (It's an N-to-N effect, but I'm allowing
parameters to be set independently for different channels, hence not
using Process(). )

It appears to be working ok, but throws up multiple instances of the
warning "Can Initialize Unit to un-supported num channels". I've
overridden SupportedNumChannels, as recommended in various places, but
I suspect the problem is in the way I'm setting the stream format.

In the constructor, I have this:

	kInputChannels = GetNumberOfChannels();

	CAStreamBasicDescription streamDesc;
	streamDesc.SetCanonical(kInputChannels, false);
	streamDesc.mSampleRate = GetSampleRate();

	Inputs().GetIOElement(0)->SetStreamFormat(streamDesc);
	Outputs().GetIOElement(0)->SetStreamFormat(streamDesc);

But this only ever reports kInputChannels = 2, however many there
actually are. My workaround(?) is to repeat the same code in my
Initialize function, where the correct number is returned. But I
suspect something else is wrong here. Is there something else I should
be doing to report channel config correctly earlier in setup?

In case it's relevant, my SupportedNumChannels is:

UInt32 Ngs::SupportedNumChannels (const AUChannelInfo** outInfo)
{
	static const AUChannelInfo sChannels[8] =
{{1,1},{2,2},{3,3},{4,4},	{5,5},{6,6},{7,7},{8,8} };
	if (outInfo) *outInfo = sChannels;
	return sizeof (sChannels) / sizeof (AUChannelInfo);
}

thanks

IainM
 _______________________________________________
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

  • Prev by Date: ExtAudioFile API crash when reading compressed file with different sample rate
  • Next by Date: Re: ExtAudioFile API crash when reading compressed file with different sample rate
  • Previous by thread: Re: ExtAudioFile API crash when reading compressed file with different sample rate
  • Next by thread: Re: 'Unsupported num channels' warnings
  • Index(es):
    • Date
    • Thread