UFO: Alien Invasion
Loading...
Searching...
No Matches
s_sample.h
Go to the documentation of this file.
1
4
5/*
6All original material Copyright (C) 2002-2025 UFO: Alien Invasion.
7
8Original file from Quake 2 v3.21: quake2-2.31/client/sound.h
9Copyright (C) 1997-2001 Id Software, Inc.
10
11This program is free software; you can redistribute it and/or
12modify it under the terms of the GNU General Public License
13as published by the Free Software Foundation; either version 2
14of the License, or (at your option) any later version.
15
16This program is distributed in the hope that it will be useful,
17but WITHOUT ANY WARRANTY; without even the implied warranty of
18MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19
20See the GNU General Public License for more details.
21
22You should have received a copy of the GNU General Public License
23along with this program; if not, write to the Free Software
24Foundation, 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
32void S_PrecacheSamples(void);
33void S_FreeSamples(void);
34s_sample_t* S_LoadSample(const char* s);
35s_sample_t* S_GetSample (const int soundIdx);
36void S_PlaySample(const vec3_t origin, s_sample_t* sample, float atten, float volume);
voidpf uLong int origin
Definition ioapi.h:45
void S_PrecacheSamples(void)
Definition s_sample.cpp:163
s_sample_t * S_GetSample(const int soundIdx)
Definition s_sample.cpp:132
void S_FreeSamples(void)
Definition s_sample.cpp:139
s_sample_t * S_LoadSample(const char *s)
Loads and registers a sound file for later use.
Definition s_main.cpp:335
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
vec_t vec3_t[3]
Definition ufotypes.h:39