• 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: Question about AudioUnits, Cocoa views, and getting info at init time
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about AudioUnits, Cocoa views, and getting info at init time


  • Subject: Re: Question about AudioUnits, Cocoa views, and getting info at init time
  • From: tahome izwah <email@hidden>
  • Date: Tue, 29 Sep 2009 07:58:46 +0200

Are you trying to determine the number of channels that the AU
supports from within a host app, or are you looking for the actual
number of channels that the AU is instantiated with by the host?

For a host app I think the proper call to use on that AudioUnit is
SupportedNumChannels(). It will tell you what channel configs are
supported by the AU.

HTH
--th

2009/9/29 Walt <email@hidden>:
> I'm having a problem with determining an audiounit's channel count from its
> GUI at init time.
> Specifically, the plug-in supports a number of different channel counts
> (stereo + surround), but needs to do different things depending on how it is
> instantiated - including build a different gui. The stereo case looks
> different than the 5.1 case, as does the 6.1, etc.
> Everything I've tried* tells me input and output channel counts are 0. This
> tells me I'm not looking in the right place.
> Any ideas?
> Thanks,
>
> Walt
> ----
> I've tried
> callingĀ AudioUnitGetProperty(...kAudioUnitProperty_StreamFormat...) - it
> returns a structure which suggests 0 input channels andĀ 0 output channels
> I've tried adding a property to the plug-in which calls through to
> AUEffectBase::GetNumberOfChannels(), again returning 0 output channels. I
> tried the same on the input side
> (GetInput(0)->GetStreamFormat().mChannelsPerFrame) and this once again
> yielded 0.
>
 _______________________________________________
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: 
 >Question about AudioUnits, Cocoa views, and getting info at init time (From: Walt <email@hidden>)

  • Prev by Date: Question about AudioUnits, Cocoa views, and getting info at init time
  • Next by Date: Re: Silence dection for remoteIO mic recorder
  • Previous by thread: Question about AudioUnits, Cocoa views, and getting info at init time
  • Next by thread: Re: Question about AudioUnits, Cocoa views, and getting info at init time
  • Index(es):
    • Date
    • Thread