iOS - Question on AUGraph in objective C / CPP
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