CAAudioUnit::HasDynamicScope
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.