• 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: FindComponent fails on 10.1.5
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FindComponent fails on 10.1.5


  • Subject: Re: FindComponent fails on 10.1.5
  • From: Lionel Woog <email@hidden>
  • Date: Mon, 24 Mar 2003 12:51:07 -0500

Using different code to open the audio unit under 10.1 vs 10.2 worked, but
it now fails under 10.1 when I attempt to attach my render callback with
"invalid property", how do I attach my render callback under 10.1:

AURenderCallbackStruct input;
input.inputProc = myRenderProc;
input.inputProcRefCon = player;

err = AudioUnitSetProperty(
player->outputAudioUnit,
kAudioUnitProperty_SetRenderCallback,
kAudioUnitScope_Input,
0,
&input,
sizeof(input)
);
if (err) {
fprintf(stderr, "AudioUnitSetProperty (1) returned %ld\n", err);
goto error;
}


> 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.

--
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.

  • Follow-Ups:
    • Re: FindComponent fails on 10.1.5
      • From: Bill Stewart <email@hidden>
References: 
 >Re: FindComponent fails on 10.1.5 (From: Luke Bellandi <email@hidden>)

  • Prev by Date: Re: FindComponent fails on 10.1.5
  • Next by Date: Re: FindComponent fails on 10.1.5
  • Previous by thread: Re: FindComponent fails on 10.1.5
  • Next by thread: Re: FindComponent fails on 10.1.5
  • Index(es):
    • Date
    • Thread