AUInitializeGraph() crash
AUInitializeGraph() crash
- Subject: AUInitializeGraph() crash
- From: Michael Däumling <email@hidden>
- Date: Mon, 10 Jun 2013 11:34:25 +0200
Hi all,
I am working on the port on an old app to Cocoa. It contains all kinds of technology, ranging from QuickDraw via Carbon to Cocoa (I am working on the replacement of old stuff with Cocoa code contained in .mm files).
Part of the code uses the old NAxxx Quicktime APIs (NANewNoteChannel etc) to play notes. This API crashes consistently. After searching around, I decided to try the official PlaySoftMIDI sample to verify the crash, so I just pasted the sample code into my source, reshaped the main() routine to be a normal function without parameters, and called that function. So, if you know that sample code (at http://developer.apple.com/library/mac/#samplecode/PlaySoftMIDI/), that is the code I am using.
Still, I have this crash. This is the stack trace (which is identical to the trace that NANewNoteChannel() generates apart from the QuickTime component code layers):
#0 0x700544ec in MatrixReverb2::ResetAltivec() ()
#1 0x700551e9 in MatrixReverb2::Reset() ()
#2 0x70054c5e in MatrixReverb2::Initialize() ()
#3 0x70054dda in MatrixReverb2::MatrixReverb2(float, int) ()
#4 0x7001b392 in NoteScheduler::NoteScheduler(SynthInstance*, float) ()
#5 0x7001de30 in SynthInstance::InitializeSynth() ()
#6 0x7001437a in SynthInstance::Initialize() ()
#7 0x700036fc in AUBase::DoInitialize() ()
#8 0x7009bafe in AUMethodInitialize(void*) ()
#9 0x90f0cde2 in _AT_AudioUnitInitialize ()
#10 0x90f29c62 in AudioUnitNodeInfo::Initialize(AudioUnitGraph*) ()
#11 0x90f26fd0 in AudioUnitGraph::Initialize() ()
#12 0x90f26e75 in AUGraphInitialize ()
#13 0x002216d2 in PlaySoftMIDIMain() at *** this is the renamed main() of the PlaySoftMIDI sample ***
This happens on a Mac Mini with OSX 10.8, and the target is compiled for 10.6. And yes, I checked the project settings to be the same as for the PlaySoftMIDI sample. There is no special software installed apart from the latest Xcode plus a set of older OSX SDKs.
I hope that I am clear enough. Could the problem be the mixture of frameworks (booth Carbon and Coca etc)?
Any help would be greatly appreciated before I have lost all of my hair by tearing it out!
Michael
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden