[Openal] Artifacts - Alternating from left to right channels?
Ashley McConnell
ashley at siroccoracing.com
Wed Mar 4 06:54:17 PST 2009
Daniel PEACOCK wrote:
>
>
> The problem with not using the AL_SOURCE_RELATIVE flag for sounds that are
> tied to the listener's position is that you may introduce some unwanted
> movement in the sounds that are typically closest to the listener (and
> therefore the loudest and most obvious).
>
Hi Dan,
I changed all the sounds to use AL_SOURCE_RELATIVE and it has solved the
problem. I just pass in the world positions and do a transform.
i.e. Vec3 relativePosition =
(listener->getOrientation().Inverse())*(soundPosition-listener->getPosition());
(should anyone be googling).
I do think that the non-relative way should work, but hey, it works now -
i'm happy :)
Now to write a source pool :)
Thanks again for your help
All the best,
Ash
--
View this message in context: http://www.nabble.com/Artifacts---Alternating-from-left-to-right-channels--tp22100029p22331608.html
Sent from the OpenAL - User mailing list archive at Nabble.com.
More information about the Openal
mailing list