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

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


  • Subject: Question about AudioUnits, Cocoa views, and getting info at init time
  • From: Walt <email@hidden>
  • Date: Mon, 28 Sep 2009 19:28:01 -0600

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

  • Follow-Ups:
    • Re: Question about AudioUnits, Cocoa views, and getting info at init time
      • From: tahome izwah <email@hidden>
  • Prev by Date: Re: Symbol collision with Audio Unit plugins, sandboxing
  • Next by Date: Re: Question about AudioUnits, Cocoa views, and getting info at init time
  • Previous by thread: RE: Silence dection for remoteIO mic recorder
  • Next by thread: Re: Question about AudioUnits, Cocoa views, and getting info at init time
  • Index(es):
    • Date
    • Thread