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 7704199
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T23:37:56+00:00 2026-05-31T23:37:56+00:00

I’m having trouble inserting a mixer unit into an AUGraph that otherwise works OK

  • 0

I’m having trouble inserting a mixer unit into an AUGraph that otherwise works OK on both Mac OS and iOS.

My working graph looks like this:

(My Audio render callback) <- [Format converter] <- [DefaultOutput]

In addition, I’m able to successfully insert an EQ unit like this:

(My Audio render callback) <- [Format converter] <- [GraphicEQ] <- [DefaultOutput]

My goal is to insert a mixer unit but no EQ so I can control the volume of my graph independently of the system volume on iOS. However, when I set up the graph it seems to look OK, but all I get is silence.

Here’s what the graph looks like:

(My Audio render callback) <- [Format converter] <- [MultiChannelMixer] <- [DefaultOutput]

…and the output of CAShow:

AudioUnitGraph 0x397000:
  Member Nodes:
    node 1: 'auou' 'def ' 'appl', instance 0x8039704d O I
    node 2: 'aumx' 'mcmx' 'appl', instance 0x8039704e O I
    node 3: 'aufc' 'conv' 'appl', instance 0x8039704f O I
  Connections:
    node   3 bus   0 => node   2 bus   0  [ 2 ch,  44100 Hz, 'lpcm' (0x00000029) 32-bit little-endian float, deinterleaved]
    node   2 bus   0 => node   1 bus   0  [ 2 ch,  44100 Hz, 'lpcm' (0x00000029) 32-bit little-endian float, deinterleaved]
  Input Callbacks:
    {0x100035d90, 0x10037cd60} => node   3 bus   0  [2 ch, 44100 Hz]
  CurrentState:
    mLastUpdateError=0, eventsToProcess=F, isRunning=T (1)

And, finally, the code that’s setting up the graph with error-checking and iOS-specific code removed:

// A description of the output device we're looking for.
AudioComponentDescription outputDescription;
outputDescription.componentType = kAudioUnitType_Output;
outputDescription.componentSubType = kAudioUnitSubType_DefaultOutput;
outputDescription.componentManufacturer = kAudioUnitManufacturer_Apple;
outputDescription.componentFlags = 0;
outputDescription.componentFlagsMask = 0;

// A description of the mixer unit
AudioComponentDescription mixerDescription;
mixerDescription.componentType = kAudioUnitType_Mixer;
mixerDescription.componentSubType = kAudioUnitSubType_MultiChannelMixer;
mixerDescription.componentManufacturer = kAudioUnitManufacturer_Apple;
mixerDescription.componentFlags = 0;
mixerDescription.componentFlagsMask = 0;

// A description for the libspotify -> standard PCM device
AudioComponentDescription converterDescription;
converterDescription.componentType = kAudioUnitType_FormatConverter;
converterDescription.componentSubType = kAudioUnitSubType_AUConverter;
converterDescription.componentManufacturer = kAudioUnitManufacturer_Apple;
converterDescription.componentFlags = 0;
converterDescription.componentFlagsMask = 0;    

// Create an AUGraph
OSErr status = NewAUGraph(&audioProcessingGraph);

// Open the graph. AudioUnits are open but not initialized (no resource allocation occurs here)
AUGraphOpen(audioProcessingGraph);

// Add audio output...
status = AUGraphAddNode(audioProcessingGraph, &outputDescription, &outputNode);

// Add mixer
status = AUGraphAddNode(audioProcessingGraph, &mixerDescription, &mixerNode);

// Get mixer unit so we can change volume etc
status = AUGraphNodeInfo(audioProcessingGraph, mixerNode, NULL, &mixerUnit);

// Set mixer bus count
UInt32 busCount = 1;
status = AudioUnitSetProperty(mixerUnit, kAudioUnitProperty_ElementCount, kAudioUnitScope_Input, 0, &busCount, sizeof(busCount));

// Create PCM converter
status = AUGraphAddNode(audioProcessingGraph, &converterDescription, &inputConverterNode);

// Connect converter to mixer
status = AUGraphConnectNodeInput(audioProcessingGraph, inputConverterNode, 0, mixerNode, 0);

// Connect mixer to output
status = AUGraphConnectNodeInput(audioProcessingGraph, mixerNode, 0, outputNode, 0);

// Set render callback
AURenderCallbackStruct rcbs;
rcbs.inputProc = AudioUnitRenderDelegateCallback;
rcbs.inputProcRefCon = (__bridge void *)(self);

status = AUGraphSetNodeInputCallback(audioProcessingGraph, inputConverterNode, 0, &rcbs);

// Init Queue
status = AUGraphInitialize(audioProcessingGraph);

AUGraphUpdate(audioProcessingGraph, NULL);
AUGraphStart(audioProcessingGraph);
  • 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-31T23:37:57+00:00Added an answer on May 31, 2026 at 11:37 pm

    …and of course just after posting my question here, I stumble upon the answer.

    It seems that, on Mac OS at least, the input volume on a mixer defaults to 0.0. Manually setting the input volume fixed it right up:

    status = AudioUnitSetParameter(mixerUnit, kMultiChannelMixerParam_Volume, kAudioUnitScope_Input, 0, 1.0, 0);
    
    • 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 a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I'm having trouble keeping the paragraph square between the quote marks. In firefox the
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,
I've got a string that has curly quotes in it. I'd like to replace
I am doing a simple coin flipping experiment for class that involves flipping a

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.