#include "quakedef.h"
// used by menu to ghost CD audio slider
-qboolean cdaudioinitialized = false;
+cvar_t cdaudioinitialized = {CVAR_READONLY,"cdaudioinitialized","0"};
static qboolean cdValid = false;
static qboolean playing = false;
static qboolean wasPlaying = false;
*/
#include "quakedef.h"
-qboolean cdaudioinitialized = false;
+cvar_t cdaudioinitialized = {CVAR_READONLY,"cdaudioinitialized","0"};
void CDAudio_Play(qbyte track, qboolean looping)
{
int CDAudio_Init(void)
{
+ Cvar_RegisterVariable(&cdaudioinitialized);
return 0;
}
{
//VM_Cmd_Init();
VM_Cmd_Reset();
-}
\ No newline at end of file
+}
int snd_blocked = 0;
static qboolean snd_ambient = 1;
-//qboolean snd_initialized = false;
cvar_t snd_initialized = { CVAR_READONLY, "snd_initialized", "0"};
// pointer should go away
cvar_t volume = {CVAR_SAVE, "volume", "0.7"};
cvar_t snd_staticvolume = {CVAR_SAVE, "snd_staticvolume", "1"};
-qboolean snd_initialized = false;
+cvar_t snd_initialized = { CVAR_READONLY, "snd_initialized", "0"};
void S_Init (void)
{
Cvar_RegisterVariable(&bgmvolume);
Cvar_RegisterVariable(&volume);
Cvar_RegisterVariable(&snd_staticvolume);
+ Cvar_RegisterVariable(&snd_initialized);
}
void S_AmbientOff (void)