Re: cfmlateimport help
Re: cfmlateimport help
- Subject: Re: cfmlateimport help
- From: Matt Ingalls <email@hidden>
- Date: Fri, 1 Mar 2002 09:24:31 -0800
thanks paul!
after posting i figured out that the crashing was indeed happening
when coreaudio was trying to call my [cfm] ioproc and was guessing
that there was some kind of problem like you describe. will implement
the UPP... thanks again - matt
On Friday, March 1, 2002, at 08:43 AM, Paul Lalonde wrote:
i have gotten the same code to work on a cfm project, using the
CFMLateImport
approach. i can call all the coreaudio routines with no problems.
But i am getting crashes soon after calling AudioDeviceStart() -- and
my
IOProc is never called.
[ it doesnt crash if i call AudioDeviceStart() with a NULL IOProc. ]
Are you passing a function pointer as a callback anywhere? If so, you
need
to construct a UPP for this function and pass the UPP instead.
There's a
sample in the Carbon SDK called CFM_MachO_CFM that shows how to do this.
CFMLateImport fixes up *your* code so that it can call Mach-O routines
transparently. However it doesn't handle the case where Mach-O routines
need to call you.
--
Paul Lalonde
work: email@hidden "Il n'y a que les banques qui sont
libres"
home: email@hidden Jean-Luc Godard, "Sauve qui peut (la
vie)"
Matt;
________________________
matt ingalls
http://sonomatics.com/matt.html
_______________________________________________
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.