• 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
A potentially nasty bug in AUDispatch.cpp
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Audio MIDI Setup Names
  • Next by Date: Re: Audio MIDI Setup Names
  • Previous by thread: Re: Audio MIDI Setup Names
  • Next by thread: AudioUnitHosting and MusicDevices
  • Index(es):
    • Date
    • Thread