• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: iOS - Question on AUGraph in objective C / CPP
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iOS - Question on AUGraph in objective C / CPP


  • Subject: Re: iOS - Question on AUGraph in objective C / CPP
  • From: Pier <email@hidden>
  • Date: Tue, 30 Oct 2012 15:36:57 +0800

Hi Andy, 

I'm actually somewhat familiar with C and C++, I'm new to iOS and Objective C. Think I'll probably encounter examples of the languages working together as I source more, thanks! 

Pier. 

On Tue, Oct 30, 2012 at 11:25 AM, Andy Davidson <email@hidden> wrote:
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

References: 
 >Re: iOS - Question on AUGraph in objective C / CPP (From: Pier <email@hidden>)
 >Re: iOS - Question on AUGraph in objective C / CPP (From: Andy Davidson <email@hidden>)

  • Prev by Date: Re: iOS - Question on AUGraph in objective C / CPP
  • Next by Date: AUNewTimePitch + AudioQueueProcessingTap demos from CocoaConf Portland session
  • Previous by thread: Re: iOS - Question on AUGraph in objective C / CPP
  • Next by thread: ObjC KVO vs NSTimers for building MonitorViewControllers on IOS
  • Index(es):
    • Date
    • Thread