• 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
iOS - Question on AUGraph in objective C / CPP
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

iOS - Question on AUGraph in objective C / CPP


  • Subject: iOS - Question on AUGraph in objective C / CPP
  • From: Pier <email@hidden>
  • Date: Mon, 29 Oct 2012 12:32:31 +0800

Hi all, 

I've noticed that a lot of Core Audio code is in C++/C and not Objective C. 
Is there any reason for this, and should I do the same? 

For example, the simple code below to handle AUGraph is in C,is there any reason for me to do the same? 

Thanks. 

Pier. 

void CreateMyAUGraph(MyAUGraphPlayer *player)

{

// create a new AUGraph

CheckError(NewAUGraph(&player->graph),

  "NewAUGraph failed");

// generate description that will match out output device (speakers)

AudioComponentDescription outputcd = {0};

outputcd.componentType = kAudioUnitType_Output;

outputcd.componentSubType = kAudioUnitSubType_GenericOutput;

outputcd.componentManufacturer = kAudioUnitManufacturer_Apple;


(continued) 



 _______________________________________________
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

  • Follow-Ups:
    • Re: iOS - Question on AUGraph in objective C / CPP
      • From: Chris Adamson <email@hidden>
  • Prev by Date: Re: AudioQueueNewOutput and the runloop
  • Next by Date: Re: iOS - Question on AUGraph in objective C / CPP
  • Previous by thread: Re: Building the SinSynth example project in Xcode 4.3.1
  • Next by thread: Re: iOS - Question on AUGraph in objective C / CPP
  • Index(es):
    • Date
    • Thread