From 11a5ebe38a83383970425baf53d4595ae56efe70 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Thu, 25 Feb 2010 22:24:25 +0000 Subject: looped sound support for fx_sound model tags --- src/audio/audio.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/audio') diff --git a/src/audio/audio.cc b/src/audio/audio.cc index 2c8a7c1..b7a79d7 100644 --- a/src/audio/audio.cc +++ b/src/audio/audio.cc @@ -196,7 +196,7 @@ void update_listener(math::Vector3f const &location, math::Axis const &axis, mat } alListenerfv(AL_ORIENTATION, orientation); alListenerf(AL_GAIN, gain); - //alListenerfv(AL_VELOCITY, velocity.ptr()); + alListenerfv(AL_VELOCITY, velocity.ptr()); } @@ -207,7 +207,7 @@ void update_source(size_t source_index, math::Vector3f const & location, math::V ALuint source = Sources::source(source_index); alSourcefv(source, AL_POSITION, location.ptr()); - //alSourcefv(source, AL_VELOCITY, velocity.ptr()); + alSourcefv(source, AL_VELOCITY, velocity.ptr()); alSourcef(source, AL_PITCH, pitch); alSourcef(source, AL_GAIN, gain); } -- cgit v1.2.3