#ifndef SOUND_H
#define SOUND_H
-#include "cmd.h"
#include "matrixlib.h"
+struct cmd_state_s;
// ====================================================================
typedef struct sfx_s sfx_t;
-extern cvar_t mastervolume;
-extern cvar_t bgmvolume;
-extern cvar_t volume;
-extern cvar_t snd_initialized;
-extern cvar_t snd_staticvolume;
-extern cvar_t snd_mutewhenidle;
+extern struct cvar_s mastervolume;
+extern struct cvar_s bgmvolume;
+extern struct cvar_s volume;
+extern struct cvar_s snd_initialized;
+extern struct cvar_s snd_staticvolume;
+extern struct cvar_s snd_mutewhenidle;
// ====================================================================
void S_Startup (void);
void S_Shutdown (void);
-void S_UnloadAllSounds_f(cmd_state_t *cmd);
+void S_UnloadAllSounds_f(struct cmd_state_s *cmd);
void S_Update(const matrix4x4_t *listenermatrix);
void S_ExtraUpdate (void);
void S_StaticSound (sfx_t *sfx, vec3_t origin, float fvol, float attenuation);
void S_StopSound (int entnum, int entchannel);
void S_StopAllSounds (void);
-void S_StopAllSounds_f(cmd_state_t *cmd);
+void S_StopAllSounds_f(struct cmd_state_s *cmd);
void S_PauseGameSounds (qbool toggle);
void S_StopChannel (unsigned int channel_ind, qbool lockmutex, qbool freesfx);