[Openal] Updating the position of an aux send

Robert Smyth macgabhr at tcd.ie
Fri Jul 3 08:49:53 PDT 2009


Hello,

I am trying to update the position of an aux send, reverbed source, so as
the source will start playing to the left of the listener and pass by to the
right. This is quite simple to implement in openal for a dry source. However
when i try to simulate the same procedure but with a reverbed effect the
position does not update and the source is simply played out with a reverb
effect but no positional change.I am using microsoft visual 9.0 through
windows. My sound device that is being used is SB X-Fi Audio [cceo]. Is this
possible to implement. Just to verify my reverbed source works fine for a
static position and i update the sources position with

alSourcePlay (source);
for (float x = -50;x < 50; x++)
        {
            float z = -5,y = 0.5;
            printf("Position - (x,y,z): %f, %f, %f\n",x,y,z);
            alSource3f(source,AL_POSITION,x,y,z);
            alSource3f(source,AL_VELOCITY,0,0,-14);



            alutSleep(0.07);
        }

This is the snippet of code after which the effect has been declared.

-- 
Robert Smyth
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://opensource.creative.com/pipermail/openal/attachments/20090703/753cd679/attachment.html


More information about the Openal mailing list