[Openal] Play mono as "stereo"
Andrew Kerkel
andrew.kerkel at b-alive.de
Mon Oct 22 00:32:26 PDT 2007
Actually I tried the source relative trick already - but I missed to set the source reference distance to 1 - that was the clue. You helped me a lot. :)
Thanks to all of you.
- Andrew
----- Original Message -----
Hi Andrew,
If you want to play a mono sound as 2D then you should enable Head Relative mode using :-
alSourcei(SourceID, AL_SOURCE_RELATIVE, AL_TRUE);
The position you specify for the Source will now be relative to the Listener rather than a world co-ordinate. If you want the sound to play from all speakers set the Source position to 0,0,0. If you want the sound to play from in-front of the listener (like a 2D mono would) you can set the Source position to 0,0,-1. I would also set the Source Reference Distance parameter to 1.
Dan
Creative Labs, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://opensource.creative.com/pipermail/openal/attachments/20071022/77e02bc1/attachment.html
More information about the Openal
mailing list