[Openal] Channels

Garin Hiebert garinh at turkeytrot.dhs.org
Fri Sep 12 18:27:34 PDT 2003


The left/right expectations for the example below should be reversed --
OpenAL uses a right-handed coordinate system.

If your observation is that the apparent direction is never changing in
your application, then all I can think of is that the buffer may be
stereo, in which case the directionality will be gone.  For a mono
buffer, you should be getting directional audio.  Have you tried out
XLDemo or altest?  It may be worth trying one or both of those out just
to prove to yourself that things work as you expect on your system.  If
you're using Windows, you can download a pre-compiled XLDemo with the
Creative SDK linked off the OpenAL site.

Garin

> Your explanation makes sense, but the situation is a bit different.  I
have a fixed source and a fixed position listener, but the orientation
of the listener can change (basically by rotating the view).  If the
listener was at 0,0,4 with an orientation (0,0,-1) and the sound source
was at 8,0,0 I would expect that the sound would be in the left speaker,
and if the source was at -8,0,0 I would expect it in the right speaker
and if the source was at 0,0,0 I would expect it to be equal in both
speakers. 
> 
> As a further example if I was to put the source at 8,0,0 like above
but was to rotate the orientation of the listener such that it now
points directly at 8,0,0 I would expect the sound to be in both speakers
equally.




More information about the Openal mailing list