• 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: Input Render Callback and Channels
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Input Render Callback and Channels


  • Subject: RE: Input Render Callback and Channels
  • From: Darrell Gibson <email@hidden>
  • Date: Tue, 20 Oct 2009 09:23:58 +0100
  • Acceptlanguage: en-US, en-GB
  • Thread-topic: Input Render Callback and Channels

Bill,

Thanks for your help.  I did know that you can't change the format after the AU is initialized.  However, I am making in connection before I specify the format so I suspect this is my issue.  (I guess that should really have been obvious to me, but it is something I did not think about.)  I'll make the changes to my code later to verify this is the case.

Thanks also for the pointer on the CAXException.h.

Darrell.

________________________________________
From: William Stewart [email@hidden]
Sent: 20 October 2009 02:01
To: Darrell Gibson
Cc: email@hidden
Subject: Re: Input Render Callback and Channels

you can't change the format on the fly - you would have to
uninitialise the AU. Also, because you are changing the format of a
connection between 2 audio units (the effect output to the input of
the output AU), you also have to disconnect these two audio units. So,
I suspect that you are not checking the result of the format change
SetProperty call, and it is failing. You should check the results of
calls _ if only adding some simple logging when you get a result you
don't expect (ca_verify_noerr, etc in CAXException.h are quite useful)

Bill

On Oct 19, 2009, at 2:47 PM, Darrell Gibson wrote:

>
> I've created AUGraph that connects an FX AU to a GenericOutput AU
> (nothing else).  I have then defined an Input Callback on the input
> to the FX AU to supply data to the graph.  Everything is fine while
> I'm processing stereo data, but when I want to process mono data I
> run into problems.  The main problem is that despite changing the
> ASBD for the AUs to represent only one channel, the Input Callback
> still expects to process an ABL (ioData) containing two channels
> (one in each buffer).  Why is this?  I would have assumed that the
> Input Callback should be called with an ABL that corrosponds to the
> number of channels that the AUs will be processing.  Is this not
> correct?
>
> I've been messing around with the code for a few days now and don't
> seem to be getting any closer to a solution.  Any help would be
> greatly appreciated.
>
> Thanks,
>
> Darrell Gibson
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> .
>
>
>
>
>
> BU - the UK's Number One New University
> The Guardian University Guide 2009 & 2010
>
> This email is intended only for the person to whom it is addressed
> and may contain confidential information. If you have received this
> email in error, please notify the sender and delete this email,
> which must not be copied, distributed or disclosed to any other
> person.
> Any views or opinions presented are solely those of the author and
> do not necessarily represent those of Bournemouth University or its
> subsidiary companies. Nor can any contract be formed on behalf of
> the University or its subsidiary companies via email.
> _______________________________________________
> 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





 _______________________________________________
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: 
 >Input Render Callback and Channels (From: Darrell Gibson <email@hidden>)
 >Re: Input Render Callback and Channels (From: William Stewart <email@hidden>)

  • Prev by Date: Contradiction in the core audio queue services API
  • Next by Date: Contradiction in the core audio queue services API
  • Previous by thread: Re: Input Render Callback and Channels
  • Next by thread: How to get/set microphone volume
  • Index(es):
    • Date
    • Thread