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

Re: Channels and frames


  • Subject: Re: Channels and frames
  • From: "john smith" <email@hidden>
  • Date: Fri, 28 Oct 2005 12:34:05 +0200


Also, while reading it, it struck me that I was reading the wrong documentation. This is about properties, but since I'm using the base classes, surely there's some calls I should make, or methods I should override(say, GetNrOfOutputChannels()). Am I wrong in assuming that?

It's SupportedNumChannels() (covered in the 2nd and 3rd items I listed above).

I must have misunderstood something, because when using the following code, the plug-in still shows up as mono->mono and mono->stereo in Logic.


AUChannelInfo gpChannelInfos[16];

UInt32 AU::SupportedNumChannels(const AUChannelInfo** outInfo)
{
	if (outInfo != NULL) {
		gpChannelInfos[0].inChannels = 2;
		gpChannelInfos[0].outChannels = 2;

		*outInfo = (AUChannelInfo*)&gpChannelInfos;
	}

	return 1;
}



Any clues?


Thanks,

Michael Olsen

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


_______________________________________________
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


  • Follow-Ups:
    • Re: Channels and frames
      • From: Stefan Gretscher <email@hidden>
References: 
 >Re: Channels and frames (From: Marc Poirier <email@hidden>)

  • Prev by Date: Re: Channels and frames
  • Next by Date: SampleRate
  • Previous by thread: Re: Channels and frames
  • Next by thread: Re: Channels and frames
  • Index(es):
    • Date
    • Thread