OpenMoHAA
0.82.0
Loading...
Searching...
No Matches
snd_local_new.h
1
/*
2
===========================================================================
3
Copyright (C) 2023 the OpenMoHAA team
4
5
This file is part of OpenMoHAA source code.
6
7
OpenMoHAA source code is free software; you can redistribute it
8
and/or modify it under the terms of the GNU General Public License as
9
published by the Free Software Foundation; either version 2 of the License,
10
or (at your option) any later version.
11
12
OpenMoHAA source code is distributed in the hope that it will be
13
useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
GNU General Public License for more details.
16
17
You should have received a copy of the GNU General Public License
18
along with OpenMoHAA source code; if not, write to the Free Software
19
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20
===========================================================================
21
*/
22
23
#pragma once
24
25
#ifdef __cplusplus
26
extern
"C"
{
27
#endif
28
29
typedef
struct
{
30
int
iFlags;
31
char
szName[64];
32
}
soundSfx_t
;
33
34
typedef
struct
{
35
qboolean bPlaying;
36
int
iStatus;
37
soundSfx_t
sfx;
38
int
iEntNum;
39
int
iEntChannel;
40
float
vOrigin[3];
41
float
fVolume;
42
int
iBaseRate;
43
float
fNewPitchMult;
44
float
fMinDist;
45
float
fMaxDist;
46
int
iStartTime;
47
int
iTime;
48
int
iNextCheckObstructionTime;
49
int
iEndTime;
50
int
iFlags;
51
int
iOffset;
52
int
iLoopCount;
53
}
channelbasesavegame_t
;
54
55
typedef
struct
{
56
channelbasesavegame_t
Channels[MAX_CHANNELS];
57
}
soundsystemsavegame_t
;
58
59
void
S_ChannelFree_Callback(channel_t* v);
60
void
S_LoadData(
soundsystemsavegame_t
* pSave);
61
void
S_SaveData(
soundsystemsavegame_t
* pSave);
62
void
S_ReLoad(
soundsystemsavegame_t
* pSave);
63
64
extern
qboolean s_bSoundPaused;
65
66
#ifdef __cplusplus
67
}
68
#endif
channelbasesavegame_t
Definition
snd_local_new.h:34
soundSfx_t
Definition
snd_local_new.h:29
soundsystemsavegame_t
Definition
snd_local_new.h:55
code
client
new
snd_local_new.h
Generated by
1.13.2