diff options
author | Stijn Buys <ingar@osirion.org> | 2010-02-25 22:24:25 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2010-02-25 22:24:25 +0000 |
commit | 11a5ebe38a83383970425baf53d4595ae56efe70 (patch) | |
tree | 99c59f3cd07c829122c2673563a8e32388aefdd5 /src/audio | |
parent | 90fbc4c5caf5afd54920894319448b74967399ba (diff) |
looped sound support for fx_sound model tags
Diffstat (limited to 'src/audio')
-rw-r--r-- | src/audio/audio.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |