• 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
panning
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: panning
      • From: Doug Wyatt <email@hidden>
References: 
 >Re: More thread scheduling observations (From: Kurt Revis <email@hidden>)

  • Prev by Date: Re: More thread scheduling observations
  • Next by Date: Re: More thread scheduling observations
  • Previous by thread: Re: More thread scheduling observations
  • Next by thread: Re: panning
  • Index(es):
    • Date
    • Thread