• 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: Bill Stewart <email@hidden>
  • Date: Mon, 24 Mar 2003 11:08:47 -0800

You have to use a different callback struct for a V1 unit - have a look in the AUNTComponent.h header file on a Jaguar system for the different API that are required for V1 units (these were in AudioUnit.h I think in 10.1)

Bill

On Monday, March 24, 2003, at 09:51 AM, Lionel Woog wrote:

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.


-- mailto:email@hidden
tel: +1 408 974 4056

________________________________________________________________________ __
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________ __
_______________________________________________
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.
References: 
 >Re: FindComponent fails on 10.1.5 (From: Lionel Woog <email@hidden>)

  • Prev by Date: Re: FindComponent fails on 10.1.5
  • Next by Date: Re: AU & custom gui, Automation problem
  • Previous by thread: Re: FindComponent fails on 10.1.5
  • Next by thread: Another newbie question
  • Index(es):
    • Date
    • Thread