units for position & velocity

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

units for position & velocity

BrickFarmer
I managed to rebuild JOAL to work under OSX 10.8.5, and it seems to be working fine for me :) but I'm wondering what units the following calls are using.

        al.alSourcefv(source[0], AL.AL_POSITION, sourcePos, 0);
        al.alSourcefv(source[0], AL.AL_POSITION, sourceVel, 0);

meters and meters/second? or none at all?
Reply | Threaded
Open this post in threaded view
|

Re: units for position & velocity

Sven Gothel
Administrator
On 09/03/2014 05:05 PM, BrickFarmer [via jogamp] wrote:
> I managed to rebuild JOAL to work under OSX 10.8.5, and it seems to be working
> fine for me :) but I'm wondering what units the following calls are using.
>
>         al.alSourcefv(source[0], AL.AL_POSITION, sourcePos, 0);
>         al.alSourcefv(source[0], AL.AL_POSITION, sourceVel, 0);
>
>
> meters and meters/second? or none at all?

Maybe it was meters .. but don't remember correctly,
the OpenAL spec should .. right :)

http://www.openal.org/
http://www.openal.org/documentation/openal-1.1-specification.pdf
http://kcat.strangesoft.net/openal.html
http://repo.or.cz/w/openal-soft.git

~Sven


signature.asc (828 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: units for position & velocity

BrickFarmer
Section 3.3 of the spec covers it thanks.  I would have cut and paste the relevant info here, but the formatting is crazy.  Anyway basically there are no units, so I'll just see what works :) Thanks.