diff options
author | Stijn Buys <ingar@osirion.org> | 2008-07-17 14:19:18 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-07-17 14:19:18 +0000 |
commit | ae65ef53fc8b70ebee3b43bb06ecd091aaae2a26 (patch) | |
tree | d8a2a253314e0bab54edc9ee829aee819a7860bd /src/audio/audio.h | |
parent | eb075660e7cb61b138c2da337115c59857f89e17 (diff) |
engine sounds
Diffstat (limited to 'src/audio/audio.h')
-rw-r--r-- | src/audio/audio.h | 13 |
1 files changed, 13 insertions, 0 deletions
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 <iostream> + #ifdef _WIN32 #include <windows.h> #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__ |