UFO: Alien Invasion
 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_sample_t * S_GetSample(const int soundIdx)
Definition: s_sample.cpp:132
voidpf uLong int origin
Definition: ioapi.h:45
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
void S_FreeSamples(void)
Definition: s_sample.cpp:139
void S_PrecacheSamples(void)
Definition: s_sample.cpp:163
s_sample_t * S_LoadSample(const char *s)
Loads and registers a sound file for later use.
Definition: s_main.cpp:342
vec_t vec3_t[3]
Definition: ufotypes.h:39