• 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: Wrapper class for Cocoa Audio Units in Carbon Hosts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Wrapper class for Cocoa Audio Units in Carbon Hosts
      • From: Seth Nickell <email@hidden>
References: 
 >Wrapper class for Cocoa Audio Units in Carbon Hosts (From: Seth Nickell <email@hidden>)
 >Re: Wrapper class for Cocoa Audio Units in Carbon Hosts (From: Brian Willoughby <email@hidden>)
 >Re: Wrapper class for Cocoa Audio Units in Carbon Hosts (From: Seth Nickell <email@hidden>)
 >Re: Wrapper class for Cocoa Audio Units in Carbon Hosts (From: tahome izwah <email@hidden>)

  • Prev by Date: Re: Wrapper class for Cocoa Audio Units in Carbon Hosts
  • Next by Date: RE: can ExtAudio file be used to compress PCM on iPhone
  • Previous by thread: Re: Wrapper class for Cocoa Audio Units in Carbon Hosts
  • Next by thread: Re: Wrapper class for Cocoa Audio Units in Carbon Hosts
  • Index(es):
    • Date
    • Thread