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

  • Home
  • SEARCH
  • 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 7704305
In Process

The Archive Base Latest Questions

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

I’m trying to setup a high-pass filter but AUGraphStart gives me -10863 when I

  • 0

I’m trying to setup a high-pass filter but AUGraphStart gives me -10863 when I try. I cannot find much documntation at all. Here is my attent to set up the filter:

 - (void)initializeAUGraph{
    AUNode outputNode;
    AUNode mixerNode;
    AUNode effectNode;
    NewAUGraph(&mGraph);
    // Create AudioComponentDescriptions for the AUs we want in the graph
    // mixer component
    AudioComponentDescription mixer_desc;
    mixer_desc.componentType = kAudioUnitType_Mixer;
    mixer_desc.componentSubType = kAudioUnitSubType_AU3DMixerEmbedded;
    mixer_desc.componentFlags = 0;
    mixer_desc.componentFlagsMask = 0;
    mixer_desc.componentManufacturer = kAudioUnitManufacturer_Apple;
    //  output component
    AudioComponentDescription output_desc;
    output_desc.componentType = kAudioUnitType_Output;
    output_desc.componentSubType = kAudioUnitSubType_RemoteIO;
    output_desc.componentFlags = 0;
    output_desc.componentFlagsMask = 0;
    output_desc.componentManufacturer = kAudioUnitManufacturer_Apple;
    //effect component
    AudioComponentDescription effect_desc;
    effect_desc.componentType = kAudioUnitType_Effect;
    effect_desc.componentSubType = kAudioUnitSubType_HighPassFilter;
    effect_desc.componentFlags = 0;
    effect_desc.componentFlagsMask = 0;
    effect_desc.componentManufacturer = kAudioUnitManufacturer_Apple;
    // Add nodes to the graph to hold our AudioUnits
    AUGraphAddNode(mGraph, &output_desc, &outputNode);
    AUGraphAddNode(mGraph, &mixer_desc, &mixerNode);
    AUGraphAddNode(mGraph, &effect_desc, &effectNode);
    // Connect the nodes
    AUGraphConnectNodeInput(mGraph, mixerNode, 0, effectNode, 0);
    AUGraphConnectNodeInput(mGraph, effectNode, 0, outputNode, 0);
    //Open Graph
    AUGraphOpen(mGraph);
    // Get a link to the mixer AU
    AUGraphNodeInfo(mGraph, mixerNode, NULL, &mMixer);
    // Get a link to the effect AU
    AUGraphNodeInfo(mGraph, effectNode, NULL, &mEffect);
    //Setup buses
    size_t numbuses = track_count;
    UInt32 size = sizeof(numbuses);
    AudioUnitSetProperty(mMixer, kAudioUnitProperty_ElementCount, kAudioUnitScope_Input, 0, &numbuses, size);
    //Setup Stream Format Data
    AudioStreamBasicDescription desc;
    size = sizeof(desc);
    // Setup Stream Format
    desc.mSampleRate = kGraphSampleRate;
    desc.mFormatID = kAudioFormatLinearPCM;
    desc.mFormatFlags = kAudioFormatFlagIsSignedInteger | kAudioFormatFlagIsPacked;
    desc.mBitsPerChannel = sizeof(AudioSampleType) * 8; // AudioSampleType == 16 bit signed ints
    desc.mChannelsPerFrame = 1;
    desc.mFramesPerPacket = 1;
    desc.mBytesPerFrame = sizeof(AudioSampleType);
    desc.mBytesPerPacket = desc.mBytesPerFrame;
    // Loop through and setup a callback for each source you want to send to the mixer.
    for (int i = 0; i < numbuses; ++i) {
        // Setup render callback struct
        AURenderCallbackStruct renderCallbackStruct;
        renderCallbackStruct.inputProc = &renderInput;
        renderCallbackStruct.inputProcRefCon = self;
        // Connect the callback to the mixer input channel
        AUGraphSetNodeInputCallback(mGraph, mixerNode, i, &renderCallbackStruct);
        // Apply Stream Data
        AudioUnitSetProperty(mMixer, kAudioUnitProperty_StreamFormat,kAudioUnitScope_Input,i,&desc,size);
        AudioUnitSetParameter(mMixer, k3DMixerParam_Distance, kAudioUnitScope_Input, i, rand() % 6, 0);
        rotation[i] = rand() % 360;
        rotation_speed[i] = rand() % 5;
        AudioUnitSetParameter(mMixer, k3DMixerParam_Azimuth, kAudioUnitScope_Input, i, rotation[i], 0);
        AudioUnitSetParameter(mMixer, k3DMixerParam_Elevation, kAudioUnitScope_Input, i, 30, 0);
    }
    // Reset stream fromat data to 0
    memset (&desc, 0, sizeof (desc));
    // Setup output stream format
    desc.mSampleRate = kGraphSampleRate;
    // Apply Stream Data to Output
    AudioUnitSetProperty(mEffect,kAudioUnitProperty_StreamFormat,kAudioUnitScope_Input,0,&desc,size);
    AudioUnitSetProperty(mEffect,kAudioUnitProperty_StreamFormat,kAudioUnitScope_Output,0,&desc,size);
    AudioUnitSetProperty(mMixer,kAudioUnitProperty_StreamFormat,kAudioUnitScope_Output,0,&desc,size);
    //All done so initialise
    AUGraphInitialize(mGraph);
}

It works when I remove the high pass filter. How do I get the filter working?

Thank you.

PS: Is the 3D elevation supposed to do nothing?

  • 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:39:17+00:00Added an answer on May 31, 2026 at 11:39 pm

    Not all Audio Units that are available on OSX are available on iOS. In fact, only a few are. According to below documentation the highpassfilter effect is not supported on iOS : http://developer.apple.com/library/ios/#documentation/MusicAudio/Conceptual/AudioUnitHostingGuide_iOS/UsingSpecificAudioUnits/UsingSpecificAudioUnits.html#//apple_ref/doc/uid/TP40009492-CH17-SW1

    “The iPod EQ unit (subtype kAudioUnitSubType_AUiPodEQ) is the only effect unit provided in iOS 4.”

    Note that it mentions iOS4. But I am unable to find any documentation on this for later versions of iOS.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Seemingly simple, but I cannot find anything relevant on the web. What is the
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want to count how many characters a certain string has in PHP, but
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am trying to render a haml file in a javascript response like so:
I have a French site that I want to parse, but am running into

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.