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/client.cc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/client/client.cc') 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); -- cgit v1.2.3