Re: Sending an effect to a particular speaker of sb5.1
Chris Robinson <[email protected]>
| Newsgroups | gmane.comp.lib.openal |
|---|---|
| Message-ID | <[email protected]> |
On Sunday 29 November 2009 9:10:55 am Oleksiy Frolov wrote:
> Chris, you say
>
> > One way to do it would be to set the source property AL_SOURCE_RELATIVE
> > to AL_TRUE and AL_REFERENCE_DISTANCE to 1. Then you can use the source's
> > 3D position to set it where a speaker should be. Such as 0,0,-1, which
> > would place the sound where the front-center speaker would be.
>
> I was thinking on using a similar approach, however I could not find any
> info on speaker location coordinates. You said, 0,0,-1 is a front center.
> Is there any info available on where the rest of the speakers will be ?
Here is a page that mentions the default positioning for some surround sound
setups:
http://en.wikipedia.org/wiki/Surround_sound
Though the idea here wouldn't be putting the source right on the wanted
speaker, so much as it is putting the source on a "virtual" speaker and openal
will pan to make it sound like it's coming from there, whether there's a
speaker or not. Eg. if you want the sound to come from the back-left, put the
source at {-0.707, 0, 0.707} for -135deg, or for front-right at {0.707, 0,
-0.707} for +45deg.
_______________________________________________
Openal mailing list
[email protected]
http://opensource.creative.com/mailman/listinfo/openal