UFO: Alien Invasion
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
s_sample.h
Go to the documentation of this file.
1
5
/*
6
All original material Copyright (C) 2002-2020 UFO: Alien Invasion.
7
8
Original file from Quake 2 v3.21: quake2-2.31/client/sound.h
9
Copyright (C) 1997-2001 Id Software, Inc.
10
11
This program is free software; you can redistribute it and/or
12
modify it under the terms of the GNU General Public License
13
as published by the Free Software Foundation; either version 2
14
of the License, or (at your option) any later version.
15
16
This program is distributed in the hope that it will be useful,
17
but WITHOUT ANY WARRANTY; without even the implied warranty of
18
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19
20
See the GNU General Public License for more details.
21
22
You should have received a copy of the GNU General Public License
23
along with this program; if not, write to the Free Software
24
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25
26
*/
27
28
#pragma once
29
30
#include "
s_local.h
"
/* for s_sample_t */
31
32
void
S_PrecacheSamples
(
void
);
33
void
S_FreeSamples
(
void
);
34
s_sample_t
*
S_LoadSample
(
const
char
* s);
35
s_sample_t
*
S_GetSample
(
const
int
soundIdx);
36
void
S_PlaySample
(
const
vec3_t
origin
,
s_sample_t
* sample,
float
atten,
float
volume);
S_GetSample
s_sample_t * S_GetSample(const int soundIdx)
Definition:
s_sample.cpp:132
s_sample_s
Definition:
s_local.h:41
origin
voidpf uLong int origin
Definition:
ioapi.h:45
S_PlaySample
void S_PlaySample(const vec3_t origin, s_sample_t *sample, float atten, float volume)
Validates the parms and queues the sound up.
Definition:
s_mix.cpp:96
S_FreeSamples
void S_FreeSamples(void)
Definition:
s_sample.cpp:139
S_PrecacheSamples
void S_PrecacheSamples(void)
Definition:
s_sample.cpp:163
s_local.h
S_LoadSample
s_sample_t * S_LoadSample(const char *s)
Loads and registers a sound file for later use.
Definition:
s_main.cpp:342
vec3_t
vec_t vec3_t[3]
Definition:
ufotypes.h:39
src
client
sound
s_sample.h
Generated on Mon Feb 24 2020 05:28:04 for UFO: Alien Invasion by
1.8.8