Re: Wrapper class for Cocoa Audio Units in Carbon Hosts
Re: Wrapper class for Cocoa Audio Units in Carbon Hosts
- Subject: Re: Wrapper class for Cocoa Audio Units in Carbon Hosts
- From: tahome izwah <email@hidden>
- Date: Fri, 7 Aug 2009 12:27:08 +0200
Hi Seth, I have a couple of additional things concerning the wrapper:
Corrections:
----------------
Convolution_COMP_SUBTYPE and Convolution_COMP_MANF in your
AUCarbonViewCocoaWrapper.h should be MyAU_COMP_SUBTYPE and
MyAU_COMP_MANF respectively.
Additions:
----------------
In order for the wrapper to work, you have to make the following
additional changes to your Cocoa AU project:
1. You need to add the following code to your MyAU class in MyAU.h:
#include "AUCarbonViewBase.h"
...
int GetNumCustomUIComponents () { return 1; }
void GetUIComponentDescs (ComponentDescription* inDescArray)
{
inDescArray[0].componentType =
kAudioUnitCarbonViewComponentType;
inDescArray[0].componentSubType = MyAU_COMP_SUBTYPE;
inDescArray[0].componentManufacturer = MyAU_COMP_MANF;
inDescArray[0].componentFlags = 0;
inDescArray[0].componentFlagsMask = 0;
}
2. You need to add the AUCarbonViewBase folder to your project (can be
found in /Developer/Examples/CoreAudio/AudioUnits/AUPublic/AUCarbonViewBase)
3. You need to add CAStreamBasicDescription.cpp|h,
CAAudioChannelLayout.cpp|h, CAVectorUnit.cpp|h, CAAUParameter.cpp|h,
CADebugMacros.h, AUViewLocalizedStringKeys.h to your project if not
already there, and en/disable source files in your project as needed.
Problems:
----------------
The Cocoa-in-Carbon view doesn't behave properly wrt. editing. When I
switch to the Carbon view in AULab the window immediately deactivates
and the changes (moving the slider etc.) take a few seconds to be
reflected in the UI (but only if the text field has the keyboard
focus, otherwise the view is completely disabled). FYI I am using the
default Cocoa AU project which has one slider and a text field.
The crash in AULab on exit remains (this happens when the Carbon UI is
open during quit) and AudioHijack Pro immediately crashes when opening
the plug in's editor.
HTH
--th
_______________________________________________
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