vkQuake2 doxygen  1.0 dev
sound.h
Go to the documentation of this file.
1 /*
2 Copyright (C) 1997-2001 Id Software, Inc.
3 
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License
6 as published by the Free Software Foundation; either version 2
7 of the License, or (at your option) any later version.
8 
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 
13 See the GNU General Public License for more details.
14 
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 
19 */
20 
21 struct sfx_s;
22 
23 void S_Init (void);
24 void S_Shutdown (void);
25 
26 // if origin is NULL, the sound will be dynamically sourced from the entity
27 void S_StartSound (vec3_t origin, int entnum, int entchannel, struct sfx_s *sfx, float fvol, float attenuation, float timeofs);
28 void S_StartLocalSound (char *s);
29 
30 void S_RawSamples (int samples, int rate, int width, int channels, byte *data);
31 
32 void S_StopAllSounds(void);
33 void S_Update (vec3_t origin, vec3_t v_forward, vec3_t v_right, vec3_t v_up);
34 
35 void S_Activate (qboolean active);
36 
37 void S_BeginRegistration (void);
38 struct sfx_s *S_RegisterSound (char *sample);
39 void S_EndRegistration (void);
40 
41 struct sfx_s *S_FindName (char *name, qboolean create);
42 
43 // the sound code makes callbacks to the client for entitiy position
44 // information, so entities can be dynamically re-spatialized
45 void CL_GetEntitySoundOrigin (int ent, vec3_t org);
S_Shutdown
void S_Shutdown(void)
Definition: snd_dma.c:164
qboolean
qboolean
Definition: q_shared.h:63
sfx_s
Definition: snd_loc.h:39
S_FindName
struct sfx_s * S_FindName(char *name, qboolean create)
Definition: snd_dma.c:205
S_Init
void S_Init(void)
Definition: snd_dma.c:116
S_BeginRegistration
void S_BeginRegistration(void)
Definition: snd_dma.c:293
S_RegisterSound
struct sfx_s * S_RegisterSound(char *sample)
Definition: snd_dma.c:305
width
GLint GLsizei width
Definition: qgl_win.c:115
S_Update
void S_Update(vec3_t origin, vec3_t v_forward, vec3_t v_right, vec3_t v_up)
Definition: snd_dma.c:1009
S_RawSamples
void S_RawSamples(int samples, int rate, int width, int channels, byte *data)
Definition: snd_dma.c:910
S_Activate
void S_Activate(qboolean active)
Definition: snd_win.c:844
channels
channel_t channels[MAX_CHANNELS]
Definition: snd_dma.c:42
name
cvar_t * name
Definition: cl_main.c:79
s
static fixed16_t s
Definition: r_scan.c:30
S_StartSound
void S_StartSound(vec3_t origin, int entnum, int entchannel, struct sfx_s *sfx, float fvol, float attenuation, float timeofs)
Definition: snd_dma.c:655
rate
cvar_t * rate
Definition: cl_main.c:81
CL_GetEntitySoundOrigin
void CL_GetEntitySoundOrigin(int ent, vec3_t org)
Definition: cl_ents.c:1529
sample
Definition: jar_mod.h:111
S_StopAllSounds
void S_StopAllSounds(void)
Definition: snd_dma.c:785
S_StartLocalSound
void S_StartLocalSound(char *s)
Definition: snd_dma.c:738
vec3_t
vec_t vec3_t[3]
Definition: q_shared.h:134
S_EndRegistration
void S_EndRegistration(void)
Definition: snd_dma.c:328