From 90fbc4c5caf5afd54920894319448b74967399ba Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Thu, 25 Feb 2010 19:28:14 +0000 Subject: added initial support for model sound tags, moved sound code from client/targets.cc to client/soundext.cc, added master volume cvar snd_volume --- src/client/soundext.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/client/soundext.h') diff --git a/src/client/soundext.h b/src/client/soundext.h index a99cee0..b0fc17a 100644 --- a/src/client/soundext.h +++ b/src/client/soundext.h @@ -8,10 +8,15 @@ #define __INCLUDED_CLIENT_SOUNDEXT_H__ #include "core/extension.h" +#include "core/cvar.h" namespace client { +extern core::Cvar *snd_engines; +extern core::Cvar *snd_doppler; +extern core::Cvar *snd_volume; + /// the sound extension of an entity class SoundExt : public core::Extension { @@ -43,6 +48,12 @@ private: size_t state_engineeventsource; }; +/// render listener sound +void render_listener_sound(); + +/// render sound for a single entity +void render_entity_sound(core::Entity *entity); + } //namespace client // -- cgit v1.2.3