New OpenAL functions and attributes


Speaker position:
New OpenAL functions to handle speaker attributes:

  void alSpeakerf     ( ALint spnum, ALenum pname, ALfloat param   )
  void alSpeakerfv    ( ALint spnum, ALenum pname, ALfloat* param  )
  void alGetSpeakeri  ( ALint spnum, ALenum pname, ALint* value    )
  void alGetSpeakerf  ( ALint spnum, ALenum pname, ALfloat* value  )
  void alGetSpeakeriv ( ALint spnum, ALenum pname, ALint* values   )
  void alGetSpeakerfv ( ALint spnum, ALenum pname, ALfloat* values )

possible params:

  AL_POSITION        : Get/Set the absolute initial position
  AL_DIRECTION       : Get/Set the initial direction
  AL_GAIN*           : Get/Set the gain (default is 1.0)
  AL_CONEINNERANGLE* : Get/Set the inner angle output relative to direction
  AL_CONEOUTERANGLE* : Get/Set the outer angle output relative to direction
  AL_CONEINNERGAIN*  : Get/Set the inner gain

*note: not supportet yet (attributes can be set but nothing happens)

  AL_SPEAKER_NUM     : Get the speaker count (use alGetInteger() function)

Real listener:
New OpenAL functions to handle real listener attributes:

  void alRealListener3f( ALenum pname, ALfloat f1, ALfloat f2, ALfloat f3 )
  void alRealListenerfv( ALenum pname, ALfloat* param );

  void alGetRealListenerfv( ALenum pname, ALfloat* values );
  void alGetRealListener3f( ALenum pname, ALfloat *f1, ALfloat *f2, ALfloat *f3 );

possible params:

  AL_POSITION        : Get/Set* the position relative the initial position (0,0,0)
  AL_ORIENTATION     : Get/Set the real listener at and up orientation

*note: Listener position in the scene is dependent from the real listener position. (If the real listener move by x also the listener in scene moved by x.)


Dirk Ehlke

Last modified: 2002/07/24