panning
panning
- Subject: panning
- From: Arthur Clemens <email@hidden>
- Date: Sun, 5 May 2002 17:23:28 +0200
Hi
I've come across some examples of CoreAudio code that creates a
panning effect for individual channels by iterating n frames over the
source buffer and multiplying each source frame with the left and
right volume values, something like this:
float f;
for (i=0; i<frameCount; ++i) {
f = *sourceBuffer++;
*outBuffer++ = f * leftVolume;
*outBuffer++ = f * rightVolume;
}
I wonder if this is a preferred method. Wouldn't it be better to
create a AUGraph for panning?
The problem is I don't really get the concept of AUGraphs, or when to use them.
Thanks for any help
Arthur
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.