Re: Playing 2 or more audio data simultaneously
Re: Playing 2 or more audio data simultaneously
- Subject: Re: Playing 2 or more audio data simultaneously
- From: Bill Stewart <email@hidden>
- Date: Thu, 19 Sep 2002 11:10:21 -0700
There's probably some confusion
All properties for an AudioUnit are passed by reference - so the value of
the property is an AudioUnitConnection struct, but the property calls take a
pointer to the struct
The size of the property is the size of the struct (not its pointer)
Bill
on 19/9/02 10:35 AM, Kurt Revis wrote:
>
On Thursday, September 19, 2002, at 01:40 AM, Alberto Ricci wrote:
>
>
>> err = AudioUnitSetProperty(outputAudioUnit,
>
>> kAudioUnitProperty_MakeConnection, kAudioUnitScope_Input, 0,
>
>> &connection, sizeof(struct AudioUnitConnection *));
>
>
>
> It should be sizeof(AudioUnitConnection), not the size of a pointer to
>
> it, I suppose.
>
>
Nope. The comments for kAudioUnitProperty_MakeConnection say that it
>
takes an (AudioUnitConnection *). My code does the same as above, and
>
it works.
>
>
(an aside: This code was written on 10.1, when there was no typedef for
>
AudioUnitConnection, just a struct. It looks like 10.2 has the typedef
>
now, so you could omit the 'struct'.)
>
>
--
>
Kurt Revis
>
email@hidden
>
_______________________________________________
>
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
__________________________________________________________________________
"...Been havin' some trouble lately in the sausage business," C.M.O.T.
Dibbler replied.
"What, having trouble making both ends meat?"
__________________________________________________________________________
_______________________________________________
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.