I want to hook the function AudioUnitInitialize
to grab the Audio Unit of an application by injecting a bundle at the application start.
I found an example (http://pastie.org/1882125) but it uses the function MSHookFunction
to replace the function names. The problem is that I want to replace the functions on Mac OS X, not on iOS.
Is there another way to hook C functions?
If you look closely, you can find out that MobileSubstrate runs on OS X as well.