mike4linux
2012-06-14 06:42:58 UTC
Hi
pPsi is the heading angle in degrees. I set soundpositions:
float hdgPv = fmod(pPsi + 180, 360);//front x position
float hdgPh = fmod(pPsi, 360);//back
alSource3f(Sources[2], AL_POSITION, hdgPv/10, lY/10, lZ/10); //front
now attenuation is fine for back but for front I get a interruption
when angle goes from 360 - 0. Any
idea on how to fix that? I was also looking for AL_DIRECTION but
couldn't find any solution.
Many thanks
pPsi is the heading angle in degrees. I set soundpositions:
float hdgPv = fmod(pPsi + 180, 360);//front x position
float hdgPh = fmod(pPsi, 360);//back
alSource3f(Sources[2], AL_POSITION, hdgPv/10, lY/10, lZ/10); //front
now attenuation is fine for back but for front I get a interruption
when angle goes from 360 - 0. Any
idea on how to fix that? I was also looking for AL_DIRECTION but
couldn't find any solution.
Many thanks
--
View this message in context: http://old.nabble.com/AL_DIRECTION----rotating-source-tp34010052p34010052.html
Sent from the OpenAL - User mailing list archive at Nabble.com.
View this message in context: http://old.nabble.com/AL_DIRECTION----rotating-source-tp34010052p34010052.html
Sent from the OpenAL - User mailing list archive at Nabble.com.