A potentially nasty bug in AUDispatch.cpp
A potentially nasty bug in AUDispatch.cpp
- Subject: A potentially nasty bug in AUDispatch.cpp
- From: Bill Stewart <email@hidden>
- Date: Thu, 12 Jun 2003 23:35:41 -0700
The AUDispatch.cpp is missing a break for one of its case statements -
so it falls through:
in the:
case kComponentCanDoSelect:
switch (params->params[0]) {
// any selectors
case kAudioUnitInitializeSelect:
case kAudioUnitUninitializeSelect:
...
default:
return ComponentBase::ComponentEntryDispatch(params, This);
}
-> break;
case kAudioUnitInitializeSelect:
...
statement for the main switch - so any call to this selector would fall
through and end up initializing the AU - so you need to add a break
here:
(Don't get confused! - the embedded switch statement for the
kComponentCanDoSelect is correct - its the *end* of that guys case
statement that doesn't have the break...
Bill
--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________
__
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________
__
_______________________________________________
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.