• 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
Re: AudioUnit sidechain
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AudioUnit sidechain


  • Subject: Re: AudioUnit sidechain
  • From: Antoine Misout <email@hidden>
  • Date: Wed, 18 May 2005 15:49:33 -0400

Problem solved. Code snippet is correct. Bug was elsewhere.

Nevermind.

Antoine

On 16-May-05, at 12:08 AM, Antoine Misout wrote:

I'm having trouble adding a sidechain to my audiounits. I'm trying to do 2 input bus, 1 output bus, same channel configuration for both input bus.

AULab/Logic can see/configure the sidechain without problem.

In AULab, when the sidechain is not connected (HasInput(1) == false), everything works. In Logic, even when no sidechain is specified, it seems to connect it to something (silence?).

In any case, when the sidechain is connected, I get garbage audio from it.

Here's what I'm doing, in pseudo code:

Render()
{
   // [get main input info]

if (HasInput(1))
{
AUInputElement *theInput = GetInput(1);
ComponentResult result = theInput->PullInput (ioActionFlags, inTimeStamp, 1 /* element */, nFrames);


            if (result != noErr) return result;

            LOG("pulled sidechain\n")
    }
    else
       [point buffers to an internal silence buffer]

const AudioBufferList & sideInBuffer = GetInput(1)->GetBufferList ();

   // [do process and output]
}


No error are returned anywhere. The resulting AudioUnit passes happily auval (which never seems to test/connect the sidechain).


Any thoughts/code ? I've tried googling and greping the doc, without success..

Regards,
Antoine
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
@sonicbirth.com


This email sent to email@hidden



_______________________________________________ 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
References: 
 >AudioUnit sidechain (From: Antoine Misout <email@hidden>)

  • Prev by Date: Re: kAudioFormatProperty_AvailableEncodeFormats
  • Next by Date: Re: kAudioFormatProperty_AvailableEncode (SampleRates)
  • Previous by thread: AudioUnit sidechain
  • Next by thread: Multiple outputs for the same source
  • Index(es):
    • Date
    • Thread