SynthTest!
SynthTest!
- Subject: SynthTest!
- From: Craig Bakalian <email@hidden>
- Date: Mon, 21 Oct 2002 09:06:02 -0400
Hi Mr. Reed,
Hey, bravo! I downloaded the SynthTest source. Excellent job. I
love the AUMIDIControllerMapChannelToAu. Thanks for showing us this.
It has a crash in the run time. When I selected edit effect, then
close the edit effect window, and then change the effect, and then
selected edit effect again, the app crashes. It throws the exception
"could not get root control of carbon window".
- (IBAction)editSynthClicked:(id)sender
{
if (synthEditor)
{
[effectEditor showWindow:nil]; // I think this may want to be
synthEditor? doh!, this window never opens.
}
AudioUnit theSynth;
AUGraphGetNodeInfo(graph, synthNode, NULL, NULL, NULL, &theSynth);
synthEditor = [[[AUEditController alloc] initWithAudioUnit:theSynth]
retain];
}
- (IBAction)editEffectClicked:(id)sender
{
if (effectEditor)
{
[effectEditor showWindow:nil];
}
AudioUnit theEffect;
AUGraphGetNodeInfo(graph, effectNode, NULL, NULL, NULL, &theEffect);
effectEditor = [[AUEditController editorForAudioUnit:theEffect]
retain];
}
But this still doesn't explain the crash. I think it has something to
do with the ControlRef rootControl; in your AUEditController.m
Craig Bakalian
_______________________________________________
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.