Sign in to follow this  

openAL question?

Recommended Posts

thedodgeruk    124
in openAL, the sound and listener both have AL_VELOCITY its a float3 and says its the verlosity of the sound

im not sure what to put in here to be honest , every thing else is ok , apart form this

any one help explain this to me ?

also how do i set a distance, say i want the sound to be heard a maximum distnce from the sound and listener, were abouts do i put this .

Share this post

Link to post
Share on other sites
Tachikoma    575
The AL_VELOCITY property defines the actual velocity of the listener, and each sound source separately, not the speed of sound.

For example, if a bird moves according to some velocity vector, use that vector to update the AL_VELOCITY property in the bird's OpenAL source. The same applies for the listener, which could correspond to the camera location. Therefore, if the camera move at some speed, use that velocity vector to update the listener AL_VELOCITY.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this