• 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: Multi-input bus (sidechain) configuration
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multi-input bus (sidechain) configuration


  • Subject: Re: Multi-input bus (sidechain) configuration
  • From: Steve Baker <email@hidden>
  • Date: Mon, 03 Nov 2008 14:15:37 +0000

I confess that having a single function return the same set of pairs for all input scopes and elements seems a little counter-intuitive to me - but it seems to be what's required - so thanks for pointing me in this direction, it really helped.

I think a little clarification in the IOChannelConfigurations.rtf when dealing with non-negative channel configurations would be very useful here the next time the Apple docs are being updated.

Steve.

Sophia Poirier [dfx] wrote:
For SupportedNumChannels, you're not wanting to give a total sum of channel counts across busses, but a per-bus description. So { 2, 2 } would be the correct pair to supply.

Also, I'm not sure how you're using the multiple busses, but you may want to give them names as well to identify them to the user, like for example:
SafeGetElement(kAudioUnitScope_Input, 0)->SetName(CFSTR("main input"));
SafeGetElement(kAudioUnitScope_Input, 1)->SetName(CFSTR("sidechain"));
or whatever makes sense for your plugin. Live is an example of a host that will present this information to the user in its routing interface. (This is not the cause of your error, but just figured I'd mention it as a good idea.)


Sophia



On Oct 21, 2008, at 3:03 PM, steve wrote:

I expect there will be a collective groan when posting this, but after
several hours of searching the archives and docs this is my last resort.

I'm trying to create a AU plug-in with a fixed configuration of 2x
stereo bus inputs, and 1x stereo bus output by modifying the FilterDemo
example plugin from the SDK (derived from AUEffectBase), with the
following modifications:

1. I've added creation of an additional input bus in the constructor thus:

   AUBase::CreateElements();
   SetBusCount(kAudioUnitScope_Input, 2);


2. I've overridden SupportedNumChannels to return a single { 4, 2 } pair.


3. I've overridden Initialize() so it doesn't simply try to match the
above pair to the Input(0) and Output(0) channel counts.

I'm clearly missing something fundamental though - though the buses seem
to be correctly reported with sensible audio stream formats, auval fails
with the following output:

VERIFYING DEFAULT SCOPE FORMATS:
Input Scope Bus Configuration:
Default Bus Count:2
   Format Bus 0: AudioStreamBasicDescription:  2 ch,  44100 Hz, 'lpcm'
(0x00000029) 32-bit little-endian float, deinterleaved
   Format Bus 1: AudioStreamBasicDescription:  2 ch,  44100 Hz, 'lpcm'
(0x00000029) 32-bit little-endian float, deinterleaved

Output Scope Bus Configuration:
Default Bus Count:1
   Default Format: AudioStreamBasicDescription:  2 ch,  44100 Hz,
'lpcm' (0x00000029) 32-bit little-endian float, deinterleaved

ERROR: Default Format of unit does not match reported Channel handling
capabilities
* * FAIL


Can anyone give me any pointers in the direction of my (I suspect) obvious error?

Thanks,

Steve.

_______________________________________________
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


--
=============================================================
 Steve Baker
 FXpansion Audio UK Ltd
 http://www.fxpansion.com
 Registered address: 5 Underwood Street, London N1 7LY, UK
 Registered in England: 4455834
=============================================================

_______________________________________________
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: Re: Multi-input bus (sidechain) configuration
  • Next by Date: Rép : User-land driver plugin and sample rate
  • Previous by thread: Re: Multi-input bus (sidechain) configuration
  • Next by thread: Rép : User-land driver plugin and sample rate
  • Index(es):
    • Date
    • Thread