Re: Error setting callback function
Re: Error setting callback function
- Subject: Re: Error setting callback function
- From: William Stewart <email@hidden>
- Date: Tue, 11 Mar 2008 17:17:49 -0700
Oh... I see the problem
>>>
desc.componentType = kAudioUnitComponentType;
desc.componentSubType = kAudioUnitSubType_Effect;
Component *component = FindNextComponent( NULL, &desc);
>>>
The component type you are finding is a AUv1 type - this is a
deprecated and no longer used type of audio unit (but its there for
compatibility with older code). The definitions for this are in
AUNTComponent.h
In Leopard, we've removed AUNTComponent from the umbrella <AudioUnit/
AudioUnit.h> include, to avoid people tripping on this problem.
The component types you want are defined in AUComponent.h
So, that will be
desc.componentType = kAudioUnitType_Effect;
desc.componentSubType = WHICH_EFFECT_SUB_TYPE; // see the
AUComponent.h file
desc.componentManufacturer = WHICH_EFFECT_MANUF; //'appl'?
Component *component = FindNextComponent( NULL, &desc);
That should fix it
Bill
On Mar 11, 2008, at 5:10 PM, alejandro wrote:
William,
The error code is returned when setting the callback function, not
the stream format. I only put that one because I am not sure if it
is mandatory to set the stream formats BEFORE setting the callback
function, and to be sure that previous SetProperty calls work OK on
the instantiated AudioUnit.
Thank you,
Alejandro
--
Alejandro Palencia
Open Studio Networks
+34 667 440 770
_______________________________________________
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
_______________________________________________
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