From ae65ef53fc8b70ebee3b43bb06ecd091aaae2a26 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Thu, 17 Jul 2008 14:19:18 +0000 Subject: engine sounds --- src/audio/audio.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/audio/audio.h') diff --git a/src/audio/audio.h b/src/audio/audio.h index bf97a4a..629ae88 100644 --- a/src/audio/audio.h +++ b/src/audio/audio.h @@ -7,6 +7,8 @@ #ifndef __INCLUDED_AUDIO_AUDIO_H__ #define __INCLUDED_AUDIO_AUDIO_H__ +#include + #ifdef _WIN32 #include #endif @@ -14,6 +16,9 @@ #include "AL/al.h" #include "AL/alc.h" +#include "math/vector3f.h" +#include "math/axis.h" + /// functions to handle audio namespace audio { @@ -30,6 +35,14 @@ void load(const char *name); /// play a previously loaded audio sample void play(const char *name); +/// play a looping sound on a specified source +void loop( size_t source_index, const char *name, float pitch=1.0f, float gain=1.0f); + +/// update source parameters +void update_source(size_t source_index, math::Vector3f const & location, math::Vector3f const & velocity, float pitch=1.0f, float gain=1.0f); + +/// update listener parameters +void update_listener(math::Vector3f const &location, math::Axis const &axis, float speed); } #endif // __INCLUDED_AUDIO_AUDIO_H__ -- cgit v1.2.3