*/
void set_position( const SGVec3d& pos, const SGGeod& pos_geod );
- void set_position_offset( const SGVec3d& pos ) {
- _offset_pos = pos.data(); _changed = true;
- }
-
/**
* Get the position of the sound manager.
* This is in the same coordinate system as OpenGL; y=up, z=back, x=right
* @param vel Velocity vector
*/
void set_velocity( const SGVec3d& vel ) {
- _velocity = vel.data(); _changed = true;
+ _velocity = vel; _changed = true;
}
/**
*
* @return Velocity vector of the OpenAL listener
*/
- inline SGVec3f get_velocity() { SGVec3d f(_velocity); return toVec3f(f); }
+ inline SGVec3f get_velocity() { return toVec3f(_velocity); }
/**
* Set the orientation of the sound manager
float _volume;
// Position of the listener.
- aax::Vector64 _offset_pos;
SGGeod _geod_pos;
// Velocity of the listener.
- aax::Vector64 _velocity;
+ SGVec3d _velocity;
bool testForError(void *p, std::string s);