Re: AudioUnitRender
Re: AudioUnitRender
- Subject: Re: AudioUnitRender
- From: William Stewart <email@hidden>
- Date: Thu, 14 Oct 2010 19:36:53 -0700
audio units are required to provide the data that is asked for. So, you can't set the data size to 0.
the silence flag means that the data you are providing is silence.
Your callback could return an error if you have no data to provide, and that error will propagate down the calling chain and be returned by AudioUnitRender. The error then means that there is no valid data in the audio buffer list
Bill
On Oct 14, 2010, at 8:51 AM, Zulfiqar Malik wrote:
> Hi,
>
> I have a small graph with input and render callbacks hooked up and I use AudioUnitRender to manually pull the data from up the graph. However, there are times when I do not have enough data in the buffer. In these cases I set the OutputIsSilence flag in the action flags. However, I do not get the flag back in the unit that originally called AudioUnitRender. In addition to this I am also setting mDataByteSize to 0 in the buffer list. Is there a way of transferring this information to the caller node?
>
> Thanks.
>
> --
> Zulfiqar Malik
> The Foundry, 1 Wardour Street, London, W1D 6PA, UK
> Tel: +44 (0)20 7434 0449 - Fax: +44 (0)20 7434 1550
> Web: www.thefoundry.co.uk
>
> The Foundry Visionmongers Ltd.
> Registered in England and Wales No: 4642027
>
>
> _______________________________________________
> 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