Re: AU Format Negotiation
Re: AU Format Negotiation
- Subject: Re: AU Format Negotiation
- From: Patrick Gostovic <email@hidden>
- Date: Wed, 10 Dec 2003 16:00:37 -0500
On 10-Dec-03, at 3:22 PM, William Stewart wrote:
>
First of all - you should *never* and I mean *never* set the stream
>
format of either an input or an output from within an Audio Unit. And
>
I do mean *never*...
>
>
The format for a scope/element pair is set externally by the client,
>
and the format as such establishes a shared understanding between say
>
an output element from a source AU and an input element on a
>
destination AU.
>
>
When a connection is made by the client, the format from the source
>
unit is propagated to the input of the destination.
Thanks for the info, but...
How is the format of the source unit determined if not from within? I
have made an AU that outputs MIDI beat clock and song position pointer
events (in MIDIPacketLists) and I would like clients to know that the
output stream format is of type kAudioFormatMIDIStream. Is there
nothing that I can do so that when a client gets the
kAudioUnitProperty_StreamFormat property from my AU's output element,
the format ID will be kAudioFormatMIDIStream? Am I missing something
obvious?
Patrick
_______________________________________________
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.