• 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: Music Device and channel handshake
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Music Device and channel handshake


  • Subject: Re: Music Device and channel handshake
  • From: Makira <email@hidden>
  • Date: Mon, 31 Jan 2005 16:31:51 -0500

> 0 for a channel count is not a valid value
>
> Bill

Just took a look at
/Developer/Examples/CoreAudio/Documentation/AudioUnits/IOChannelConfiguratio
ns.rtf

Let me quote:

[...]
Current Usage
Value    Meaning
> 0    a particular number of channels
0    no audio input (or output) is supported - in this case the audio
element count on that scope would also be zero.
-1    wild card to mean any number of channels
-2    wild card used in conjunction with the -1 wild card, to mean any
number of channels.

Some Examples
Value    Meaning
{ 1, 2 }    1 channel of input, 2 channels of output
{ 0, 2 }    No inputs, 2 channel outputs. If this was the only channel info
published, the AU would be expected to have zero input elements with an
audio data format
[...]

So I guess you mean it's not a valid value to set ? Meaning a -1 or -2 value
means any positive value excluding zero? The documentation could be clearer.

Also, about SetProperty(StreamFormat, input) returning always false, from
the SDK:
AUBase.h :: 697
case kAudioUnitProperty_StreamFormat:
{
    if (inDataSize < 36) goto InvalidPropertyValue;
    require(GetElement(inScope, inElement) != NULL, InvalidElement);
    [...]
    require(ValidFormat(inScope, inElement, newDesc), InvalidFormat);
    [...]
}

Since it appears ValidFormat is never called, then it's GetElement that
fails, which makes sense since a music instrument has no input element.

Antoine




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Music Device and channel handshake
      • From: William Stewart <email@hidden>
  • Prev by Date: Re: USB Class Driver
  • Next by Date: Re: Apple Lossless
  • Previous by thread: Re: Music Device and channel handshake
  • Next by thread: Re: Music Device and channel handshake
  • Index(es):
    • Date
    • Thread