Debian Codegraph @

Descent3/voice.h

raw symbols SCIP
1 /*
2 * Descent 3
3 * Copyright (C) 2024 Parallax Software
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
18 --- HISTORICAL COMMENTS FOLLOW ---
19
20 * $Logfile: /DescentIII/main/voice.h $
21 * $Revision: 6 $
22 * $Date: 6/19/98 6:04p $
23 * $Author: Jeff $
24 *
25 * header file for voice system
26 *
27 * $Log: /DescentIII/main/voice.h $
28 *
29 * 6 6/19/98 6:04p Jeff
30 * added voice queue
31 *
32 * 5 6/19/98 11:18a Jeff
33 * removed useless valid flag
34 *
35 * 4 6/18/98 5:18p Jeff
36 * Use new streamaudio system
37 *
38 * 3 6/17/98 8:08p Jeff
39 * removed DoVoiceFrame
40 *
41 * 2 6/08/98 3:55p Jeff
42 * rough initial creation
43 *
44 * $NoKeywords: $
45 */
46
47 #ifndef __VOICE_H__
48 #define __VOICE_H__cxx . . $ `Descent3/voice.h:48:9`!
49
50 // voice flags
51 #define VF_COMPRESSEDcxx . . $ `Descent3/voice.h:51:9`! 0x00000001 // If bit is set then we are using compressed audio stream
52 #define VF_STEREOcxx . . $ `Descent3/voice.h:52:9`! 0x00000002 // In Stereo
53 #define VF_16BITcxx . . $ `Descent3/voice.h:53:9`! 0x00000004
54 #define VF_8BITcxx . . $ `Descent3/voice.h:54:9`! 0x00000008
55 #define VF_INTERUPTcxx . . $ `Descent3/voice.h:55:9`! 0x00000010 // It will interupt whatever voice is playing and play this
56 #define VF_POWERUPcxx . . $ `Descent3/voice.h:56:9`! 0x00000020 // This voice is a powerup voice
57 #define VF_FORCEcxx . . $ `Descent3/voice.h:57:9`! 0x00000040 // Forces the voice to play, even if turned off
58 #define VF_PLAYTABLEcxx . . $ `Descent3/voice.h:58:9`! 0x00000100 // The filename parameter is actually the name of a sound from the sound table
59
60 bool InitVoicescxx . . $ InitVoices(c9857a73d68e59ba).(void);
61 void CloseVoicescxx . . $ CloseVoices(49f6e7a06ebc5aa8).(void);
62 void PlayVoicecxx . . $ PlayVoice(a07d8cccb7673f5a).(char *filename, int flags);
63 void StopVoicecxx . . $ StopVoice(49f6e7a06ebc5aa8).(void);
64 void UpdateVoicescxx . . $ UpdateVoices(49f6e7a06ebc5aa8).(void);
65
66 extern bool PlayPowerupVoicecxx . . $ PlayPowerupVoice.;
67 extern bool PlayVoicescxx . . $ PlayVoices.;
68
69 #endif