Re: FindComponent fails on 10.1.5
Re: FindComponent fails on 10.1.5
- Subject: Re: FindComponent fails on 10.1.5
- From: Luke Bellandi <email@hidden>
- Date: Mon, 24 Mar 2003 09:15:06 -0800
The component you're trying to instantiate is a v2 AudioUnit. Those
are only available on OS X v10.2 & later. The v1 equivalent for an
output unit is:
desc.componentType = kAudioUnitComponentType;
desc.componentSubType = kAudioUnitSubType_Output;
desc.componentManufacturer = kAudioUnitID_DefaultOutput;
desc.componentFlags = 0;
desc.componentFlagsMask = 0;
in pre-10.2 systems, these constants are in <AudioUnit/AudioUnit.h>
on 10.2 & later systems, these constants are in
<AudioUnit/AUNTComponent.h>
Luke.
On Monday, March 24, 2003, at 08:49 AM, Lionel Woog wrote:
// Open the default output unit
desc.componentType = kAudioUnitType_Output;
desc.componentSubType = kAudioUnitSubType_DefaultOutput;
desc.componentManufacturer = kAudioUnitManufacturer_Apple;
desc.componentFlags = 0;
desc.componentFlagsMask = 0;
comp = FindNextComponent(NULL, &desc);
if (comp == NULL) {
fprintf(stderr, "FindNextComponent\n");
goto error;
}
Hi,
Any idea why the above would fail on 10.1.5 ?
Thanks,
Lionel
--
Lionel Woog, Ph.D.
CTO
Adapted Wave Technologies, Inc.
email: email@hidden
phone: 212-645-0670
_______________________________________________
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.
_______________________________________________
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.