OpenMoHAA 0.82.0
Loading...
Searching...
No Matches
snd_local_new.h
1/*
2===========================================================================
3Copyright (C) 2023 the OpenMoHAA team
4
5This file is part of OpenMoHAA source code.
6
7OpenMoHAA source code is free software; you can redistribute it
8and/or modify it under the terms of the GNU General Public License as
9published by the Free Software Foundation; either version 2 of the License,
10or (at your option) any later version.
11
12OpenMoHAA source code is distributed in the hope that it will be
13useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with OpenMoHAA source code; if not, write to the Free Software
19Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20===========================================================================
21*/
22
23#pragma once
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
29typedef struct {
30 int iFlags;
31 char szName[64];
33
34typedef 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;
54
55typedef struct {
56 channelbasesavegame_t Channels[MAX_CHANNELS];
58
59void S_ChannelFree_Callback(channel_t* v);
60void S_LoadData(soundsystemsavegame_t* pSave);
61void S_SaveData(soundsystemsavegame_t* pSave);
62void S_ReLoad(soundsystemsavegame_t* pSave);
63
64extern qboolean s_bSoundPaused;
65
66#ifdef __cplusplus
67}
68#endif
Definition snd_local_new.h:34
Definition snd_local_new.h:29
Definition snd_local_new.h:55