diff options
author | Stijn Buys <ingar@osirion.org> | 2010-02-25 19:28:14 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2010-02-25 19:28:14 +0000 |
commit | 90fbc4c5caf5afd54920894319448b74967399ba (patch) | |
tree | d4a8fe5ccdcbe94f4a3e5e1115f5baed26e8c2e3 /src/client/client.cc | |
parent | 83757353860fa447c36d4078602efea36d7da94e (diff) |
added initial support for model sound tags,
moved sound code from client/targets.cc to client/soundext.cc,
added master volume cvar snd_volume
Diffstat (limited to 'src/client/client.cc')
-rw-r--r-- | src/client/client.cc | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/client/client.cc b/src/client/client.cc index 6a50743..5bf783a 100644 --- a/src/client/client.cc +++ b/src/client/client.cc @@ -16,6 +16,7 @@ #include "client/client.h" #include "client/video.h" #include "client/input.h" +#include "client/soundext.h" #include "core/core.h" #include "core/loader.h" #include "core/zone.h" @@ -86,7 +87,16 @@ void Client::init(int count, char **arguments) cvar = core::Cvar::get("rconpassword", "", core::Cvar::Archive | core::Cvar::Info); cvar->set_info("[string] password for remote console access"); - + + snd_volume = core::Cvar::get("snd_volume", "0.8", core::Cvar::Archive); + snd_volume->set_info("[float] master volume from 0 (mute) to 1 (max volume)"); + + snd_engines = core::Cvar::get("snd_engines", "1", core::Cvar::Archive); + snd_engines->set_info("[bool] enable or disable engine sounds"); + + snd_doppler = core::Cvar::get("snd_doppler", "0", core::Cvar::Archive); + snd_doppler->set_info("[bool] enable or disable doppler effect"); + // initialize SDL, but do not initialize any subsystems SDL_Init(0); |