• 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
CAAudioUnit::HasDynamicScope
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CAAudioUnit::HasDynamicScope


  • Subject: CAAudioUnit::HasDynamicScope
  • From: William Stewart <email@hidden>
  • Date: Fri, 21 May 2004 17:44:11 -0700

If you are using this there's a rather nasty little bug here:
bool CAAudioUnit::HasDynamicScope (AudioUnitScope inScope, SInt32
&outTotalNumChannels) const
{
bool writable = false;
OSStatus result = IsElementCountWritable (inScope, writable);
if (result || (writable = false))
return false;
...
}

Obviously the if test is meant to be testing if the thing is writable
or not! so, it should read:
bool CAAudioUnit::HasDynamicScope (AudioUnitScope inScope, SInt32
&outTotalNumChannels) const
{
bool writable = false;
OSStatus result = IsElementCountWritable (inScope, writable);
if (result || (writable == false))
return false;
...
}

Sorry about that

Bill

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

________________________________________________________________________
__
Culture Ship Names:
Ravished By The Sheer Implausibility Of That Last Statement [GSV]
I said, I've Got A Big Stick [OU]
Inappropiate Response [OU]
Far Over The Borders Of Insanity And Still Accelerating [Eccentric]
________________________________________________________________________
__
_______________________________________________
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.


  • Prev by Date: Re: AU Host Sample?
  • Next by Date: Controlling Subwoofer
  • Previous by thread: Re: AU Host Sample?
  • Next by thread: Controlling Subwoofer
  • Index(es):
    • Date
    • Thread