CoreAudio SDK errata and suggestions
CoreAudio SDK errata and suggestions
- Subject: CoreAudio SDK errata and suggestions
- From: Alberto Ricci <email@hidden>
- Date: Mon, 16 Sep 2002 10:12:18 +0200
Hello,
I'd like to point out a few errors in the CoreAudio SDK, hoping that
they'll be fixed in a future release.
/Developer/Examples/CoreAudio/AudioUnits/AUPublic/AUCarbonViewBase/AUControlGroup.cpp,
line 114:
It should be
sliderValueMax = sliderRect.bottom - sliderRect.top;
instead of
sliderValueMax = sliderRect.right - sliderRect.left;
otherwise vertical sliders will not work as expected.
/Developer/Examples/CoreAudio/AudioUnits/MultitapDelayAU/MultitapAUView.cpp,
line 63:
It took me 20 seconds to add xoffset and yoffset where necessary in
MultitapAUView::CreateUI(). You might want to do that too, instead of
#warning that you're not doing it.
/Developer/Examples/CoreAudio/AudioUnits/MultitapDelayAU/MultitapAU.r:
This specifies a V1 AudioUnit, whereas the sample code works
perfectly when built as a V2 AudioUnit. Shouldn't we all be writing
V2 plug-ins from now on?
When the user interacts with the generic AudioUnitCarbonView,
parameter sliders show their value inside an editable text field.
However, although editable, this field does not set the parameter
value to what you type in when changing focus. It only changes the
value if you press return.
/Developer/Examples/CoreAudio/AudioUnits/AUPublic/AUBase/AUDispatch.cpp,
lines 405-417:
What is #if TARGET_OS_WIN32 there for?!? Leftover from other
components, or AudioUnits on windows?
Let me make a few wishes too... would it be possible to have some
sample code for other kinds of controls in a AudioUnitCarbonView?
It'd be nice to have an example of a pop-up menu for indexed
parameters using AUControlGroup:: CreatePopupMenu(), a checkbox for
boolean states (but not only AUBypassEffect for the bypass property),
and so on.
Another thing I am sure would be very helpful to many users is a
sample AU which has a different number of input and output busses.
For example, an extremely simple mixer which sums all the input
streams into one mono output stream. Or a replicator which does the
opposite.
It would be great to have sample code for other types of AudioUnits,
too - music device AUs, music effect AUs, mixer AUs...
And Dave currently only lists v1 AUs... don't you have a version
supporting v2 AUs yet?
I couldn't find any detailed information on MIDI control mapping you
can probably do with kAudioUnitProperty_MIDIControlMapping and
AUMIDIControllerMapEventToParameter(). How does it work, exactly? How
am I supposed to set that up, when I'm an AU host? How am I supposed
to implement it, when I'm an AU? Is there any sample code to start
from?
Thank you very much!
Alberto Ricci.
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.