Re: iOS - Question on AUGraph in objective C / CPP
Re: iOS - Question on AUGraph in objective C / CPP
- Subject: Re: iOS - Question on AUGraph in objective C / CPP
- From: Andy Davidson <email@hidden>
- Date: Mon, 29 Oct 2012 20:25:38 -0700
- Thread-topic: iOS - Question on AUGraph in objective C / CPP
Hi Pief
2) In the case that we need both C and Objective C in the same code, is there any source code that is a good example of this? (say we use C for audio stuff, and Objective C for the iOS UI functions)
I think you are fighting gravity here.I think all the sample apps I have looked at have used C, C++, and ObjC. In my experience I find my self using ObjC, C, and C++ in my audio related Apps. The UI code is dominated by ObjC. The core audio and some of my other DSP code are in C. I also find the C++ CoreAudioPublicUtility very helpful. You will probably also find your self using a combination of objects and structs. Memory management can be a little tricky. I find my self using new/delete, free/malloc, retain/release. I would strongly advice you to use ARC if possible. It makes ObjC memory mgmt much easier.
Its really not as bad as it seems C++ and ObjC are based on C, so the learn curve is not as bad as you might expect. I personally find the Small talk aspects of ObjC took a while to get use to.
Your mileage may vary
Andy
P.s. Apple's CoreAudioPublicUtility distribution has moved around a lot lately. I am not sure where to find the down load these days
|
_______________________________________________
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