Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/audio/audio.cc')
-rw-r--r--src/audio/audio.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/audio/audio.cc b/src/audio/audio.cc
index ff0918d..20f6b1d 100644
--- a/src/audio/audio.cc
+++ b/src/audio/audio.cc
@@ -116,20 +116,17 @@ void loop( size_t source_index, const char *name, float pitch, float gain)
alSourcePlay(source);
}
-void update_listener(math::Vector3f const &location, math::Axis const &axis, float speed)
+void update_listener(math::Vector3f const &location, math::Axis const &axis, math::Vector3f const & velocity)
{
alListenerfv(AL_POSITION, location.ptr());
- math::Vector3f velocity(axis.forward());
- velocity = velocity * speed;
- //alListenerfv(AL_VELOCITY, velocity.ptr());
-
ALfloat orientation[6];
for (size_t i =0; i <3; i++) {
orientation[i] = axis.forward()[i];
orientation[i+3] = axis.up()[i];
}
alListenerfv(AL_ORIENTATION, orientation);
+ //alListenerfv(AL_VELOCITY, velocity.ptr());
}
}