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
n-chan effect with per-channel params question
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
n-chan effect with per-channel params question
Subject
:
n-chan effect with per-channel params question
From: Stephen Davis <
email@hidden
>
Date: Fri, 26 Jan 2007 13:21:22 -0800
I'm working on a "speaker time alignment" effect unit which just implements per-channel delay but supports a different sample delay parameter per channel and I have a couple of questions:
1) To support generic indexed parameters (delay1, delay2, etc.) I have to know how many params I have before anyone queries me so the number of indexed parameters is usually (per the sample code) set up in the constructor. At this point, I don't know how many channels I'm going to have and the stream format can change so that will break things. Can I reconfigure my number of indexed parameters at any point? That seems like it would confuse the heck out of any host who's creating a generic view for my AU.
2) Since I have per-channel delay values, what is the *right* way to match the current processing kernel in its Process() routine to its channel delay? I could override SetParameter() and pass the value into the kernel at that time but that wouldn't let me take advantage of scheduled parameter updates that AUEffectsBase handles for me.
Obviously, I could just say I support 8 channels max and that solves #1 but I haven't come up with a good solution for #2. Any ideas?
It is my current impression that you can only connect audio units with matching formats so you couldn't do something like connect an AUSampleDelay to just the "left surround" channel of an output unit set for 6-channel output. Correct? Since AUSampleDelay applies the same delay to all of its channels, that's why I'm writing this unit in the first place.
thanks, stephen
P.S. The SDK base classes and overall infrastructure are awesome, I've written 3 effects in no time at all -- very cool.
P.P.S. The comment about N-to-M effects not being supported very well in AUEffectBase.cpp is true. Please fix it. :-P
_______________________________________________
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: n-chan effect with per-channel params question
From:
William Stewart <email@hidden>
Prev by Date:
Very Loud Noize
Next by Date:
RE: Coreaudio-api Digest, Vol 4, Issue 24
Previous by thread:
Re: Very Loud Noize
Next by thread:
Re: n-chan effect with per-channel params question
Index(es):
Date
Thread