Re: Two more questions
Jason Daly <[email protected]> Fri, 16 Nov 2012 16:26:09 -0500
| Newsgroups | gmane.comp.lib.openal |
|---|---|
| Message-ID | <[email protected]> |
On 11/16/2012 01:43 PM, Chris Robinson wrote: > Generally speaking, you should only need one context to handle playback. > Different sources can be set to play based on their individual roles > (with or without reverb, with or without 3D positioning, different > volumes, etc) within a single context. > > You should only ever need a separate context if you either need to > output to a different device (in which case it's created from a separate > device), or if you need two independent context states (so changing one > context doesn't affect the other). Just to clarify, you also separate contexts if you need multiple listeners, each with their own positions/orientations (this would be multiple different context states, as Chris referred to it above). This will be important if you're trying to render sound to each user from his or her own perspective. So, if Listener A is near a train and Listener B is farther away, the sounds from the train would be louder for Listener A than for Listener B. If there's only one listener involved, if all of your listeners will be in the same place, or if you just don't care much about spatialization of the rendered audio, then there's no reason to have multiple listeners, and all users can just share the audio output from a single listener and hence, a single context. --"J" _______________________________________________ Openal mailing list [email protected] http://opensource.creative.com/mailman/listinfo/openal