Re: Units for position?

Matthew Harris <[email protected]> Wed, 2 Jan 2013 10:01:15 +0100
Newsgroups gmane.comp.lib.openal
Message-ID <CAOQQpGrf-2r+0P8We56edk6BdFjxVMCb4xDo112=1=bbjr7gZA@mail.gmail.com>
Mark,

Been 'off-grid' for the past week or so, so have just seen this trail
of messages.

In JMRI, we have already foreseen the option to define the meaning of
units - it's defined within the JMRI AudioListener object (I know that
this isn't strictly a Listener property within the OpenAL context).

The section on the AudioListener should explain this a bit better at
the following page:

http://jmri.org/help/en/html/tools/Audio.shtml

For the attenuation question, by default we use the
AL_INVERSE_DISTANCE_CLAMPED attenuation model.

At the moment, there is no option to change this model (I hard-coded
it) - the only option is to turn-off attenuation completely (and that
isn't exposed in the GUI, purely through the scripting layer).

One thing that I did notice when initially playing with panning was to
set the listener position to, rather than being at (0, 0, 0), to be at
(0, 0, -1) <- assuming the standard OpenAL co-ordinate model (in other
words, standing 1 'unit' back from the edge of the layout.

Hopefully this helps you along the right track...

Best regards,

Matt H
_______________________________________________
Openal mailing list
[email protected]
http://opensource.creative.com/mailman/listinfo/openal