Re: MyVolumeUnit example.. does not 'pan'
Re: MyVolumeUnit example.. does not 'pan'
- Subject: Re: MyVolumeUnit example.. does not 'pan'
- From: David Duncan <email@hidden>
- Date: Sun, 6 Mar 2005 17:08:49 -0500
On Mar 6, 2005, at 03:16 PM, Michael Hanna wrote:
Hi all, This is from the Audio_Unit_Effect_with_Cocoa_View, the basic
AU that changes the gain. I modified it so that one channel has
increasing gain from 0.0 -> 1.0 and the other channel has decreasing
gain from 0.0->1.0. My plan was to do output = input * (1-gain) for
even samples, and output = input * gain for odd ones.
The result is that the slider has no effect on gain at all. What wrong
assumptions am I making?
Your assuming the samples are interleaved -- they aren't. Each buffer
that MyVolumeUnit::MyVolumeUnitKernel::Process() sees is a discrete
channel of audio. You are seeing a effect, but it is likely not what
you are expecting at all (and would be somewhat difficult to detect
regardless).
--
Reality is what, when you stop believing in it, doesn't go away.
Failure is not an option. It is a privilege reserved for those who try.
David Duncan
_______________________________________________
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