Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6178313
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T00:26:05+00:00 2026-05-24T00:26:05+00:00

I’m totally new to iOS programing (I’m more an Android guy..) and have to

  • 0

I’m totally new to iOS programing (I’m more an Android guy..) and have to build an application dealing with audio DSP. (I know it’s not the easiest way to approach iOS dev 😉 )

The app needs to be able to accept inputs both from :

1- built-in microphone
2- iPod library

Then filters may be applied to the input sound and the resulting is to be outputed to :

1- Speaker
2- Record to a file

My question is the following : Is an AUGraph necessary in order to be able for example to apply multiple filters to the input or can these different effects be applied by processing the samples with different render callbacks ?

If I go with AUGraph do I need : 1 Audio Unit for each input, 1 Audio Unit for the output and 1 Audio Input for each effect/filter ?

And finally if I don’t may I only have 1 Audio Unit and reconfigure it in order to select the source/destination ?

Many thanks for your answers ! I’m getting lost with this stuff…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T00:26:05+00:00Added an answer on May 24, 2026 at 12:26 am

    You may indeed use render callbacks if you so wished to but the built in Audio Units are great (and there are things coming that I can’t say here yet under NDA etc., I’ve said too much, if you have access to the iOS 5 SDK I recommend you have a look).

    You can implement the behavior you wish without using AUGraph, however it is recommended you do as it takes care of a lot of things under the hood and saves you time and effort.

    Using AUGraph

    From the Audio Unit Hosting Guide (iOS Developer Library):

    The AUGraph type adds thread safety to the audio unit story: It enables you to reconfigure a processing chain on the fly. For example, you could safely insert an equalizer, or even swap in a different render callback function for a mixer input, while audio is playing. In fact, the AUGraph type provides the only API in iOS for performing this sort of dynamic reconfiguration in an audio app.

    Choosing A Design Pattern (iOS Developer Library) goes into some detail on how you would choose how to implement your Audio Unit environment. From setting up the audio session, graph and configuring/adding units, writing callbacks.

    As for which Audio Units you would want in the graph, in addition to what you already stated, you will want to have a MultiChannel Mixer Unit (see Using Specific Audio Units (iOS Developer Library)) to mix your two audio inputs and then hook up the mixer to the Output unit.

    Direct Connection

    Alternatively, if you were to do it directly without using AUGraph, the following code is a sample to hook up Audio units together yourself. (From Constructing Audio Unit Apps (iOS Developer Library))

    You can, alternatively, establish and break connections between audio
    units directly by using the audio unit property mechanism. To do so,
    use the AudioUnitSetProperty function along with the
    kAudioUnitProperty_MakeConnection property, as shown in Listing 2-6.
    This approach requires that you define an AudioUnitConnection
    structure for each connection to serve as its property value.

    /*Listing 2-6*/
    AudioUnitElement mixerUnitOutputBus  = 0;
    AudioUnitElement ioUnitOutputElement = 0;
    
    AudioUnitConnection mixerOutToIoUnitIn;
    mixerOutToIoUnitIn.sourceAudioUnit    = mixerUnitInstance;
    mixerOutToIoUnitIn.sourceOutputNumber = mixerUnitOutputBus;
    mixerOutToIoUnitIn.destInputNumber    = ioUnitOutputElement;
    
    AudioUnitSetProperty (
        ioUnitInstance,                     // connection destination
        kAudioUnitProperty_MakeConnection,  // property key
        kAudioUnitScope_Input,              // destination scope
        ioUnitOutputElement,                // destination element
        &mixerOutToIoUnitIn,                // connection definition
        sizeof (mixerOutToIoUnitIn)
    );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I have a jquery bug and I've been looking for hours now, I can't
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
this is what i have right now Drawing an RSS feed into the php,
I have a French site that I want to parse, but am running into
I want use html5's new tag to play a wav file (currently only supported
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.