X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fsound%2Fsoundmgr_openal.hxx;h=477386e53b249115bcb2223e0254677f802690cf;hb=8174005ac897f7042d71145201f139b67e08a5ce;hp=70489973636c9ee7b482343b7b5f9122936f5c37;hpb=7fc8c026884b2d0a1b683765c089a9bef5ac47c8;p=simgear.git diff --git a/simgear/sound/soundmgr_openal.hxx b/simgear/sound/soundmgr_openal.hxx index 70489973..477386e5 100644 --- a/simgear/sound/soundmgr_openal.hxx +++ b/simgear/sound/soundmgr_openal.hxx @@ -19,7 +19,7 @@ // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software -// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // // $Id$ @@ -39,22 +39,24 @@ #include -#include STL_STRING +#include #include #if defined( __APPLE__ ) # include +# include #else # include +# include #endif #include "sample_openal.hxx" -SG_USING_STD(map); -SG_USING_STD(string); +using std::map; +using std::string; -typedef map < string, SGSoundSample * > sample_map; +typedef map < string, SGSharedPtr > sample_map; typedef sample_map::iterator sample_map_iterator; typedef sample_map::const_iterator const_sample_map_iterator; @@ -65,6 +67,9 @@ typedef sample_map::const_iterator const_sample_map_iterator; class SGSoundMgr { + ALCdevice *dev; + ALCcontext *context; + // Position of the listener. ALfloat listener_pos[3]; @@ -201,7 +206,9 @@ public: listener_vel[0] = vel[0]; listener_vel[1] = vel[1]; listener_vel[2] = vel[2]; +#ifdef USE_OPEN_AL_DOPPLER alListenerfv( AL_VELOCITY, listener_vel ); +#endif } /**