X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fsound%2Fsoundmgr_openal.hxx;h=676d6d53841a5d1a7c7dd7212effcf7e28894bf5;hb=5ac2abe3abe399858e7a8c7288ce71338daf20bf;hp=1be7eebdcd74700dc232aebc0e0c33e6e1dafbcc;hpb=5b15426cc63036594ab332971ec831a1b5cbccd2;p=simgear.git diff --git a/simgear/sound/soundmgr_openal.hxx b/simgear/sound/soundmgr_openal.hxx index 1be7eebd..676d6d53 100644 --- a/simgear/sound/soundmgr_openal.hxx +++ b/simgear/sound/soundmgr_openal.hxx @@ -157,7 +157,7 @@ public: * @param pos OpenAL listener position */ void set_position_geod( const SGGeod& pos ) { - _position_geod = pos; _changed = true; + _absolute_pos = SGVec3d::fromGeod( pos ); _changed = true; } /** @@ -166,7 +166,6 @@ public: * @return OpenAL listener position */ SGVec3d& get_position() { return _absolute_pos; } - SGGeod& get_position_geod() { return _position_geod; } /** * Set the velocity vector (in meters per second) of the sound manager @@ -281,7 +280,6 @@ private: ALCcontext *_context; // Position of the listener. - SGGeod _position_geod; SGVec3d _absolute_pos; // Velocity of the listener.