Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
sound.hpp
Go to the documentation of this file.
1 #pragma once
2 #include "inexor/network/SharedVar.hpp" // for SharedVar
3 
4 struct extentity;
5 struct vec;
6 
7 enum
8 {
9  SND_MAP = 1<<0
10 };
11 
14 enum
15 {
49 };
50 
51 namespace inexor {
52 namespace sound {
53 
54 extern bool nosound;
55 
57 
58 extern int playsound(int n, const vec *loc = nullptr, extentity *ent = nullptr, int flags = 0, int loops = 0, int fade = 0, int chanid = -1, int radius = 0, int expire = -1);
59 extern int playsoundname(const char *s, const vec *loc = nullptr, int vol = 0, int flags = 0, int loops = 0, int fade = 0, int chanid = -1, int radius = 0, int expire = -1);
60 extern void preloadsound(int n);
61 extern void preloadmapsound(int n);
62 extern bool stopsound(int n, int chanid, int fade = 0);
63 extern void stopsounds();
64 extern void initsound();
65 
66 extern void clear_sound();
67 extern void clearmapsounds();
68 extern void updatesounds();
69 extern void preloadmapsounds();
70 
71 } } // ns inexor::sound
void preloadmapsound(int n)
Definition: sound.cpp:470
SharedVar< int > soundchans
Definition: sound.hpp:18
Definition: sound.hpp:30
Definition: sound.hpp:46
void preloadmapsounds()
Definition: sound.cpp:475
Definition: sound.hpp:41
Definition: sound.hpp:43
Definition: sound.hpp:32
Definition: sound.hpp:18
Definition: sound.hpp:32
Definition: sound.hpp:33
Definition: sound.hpp:22
Definition: sound.hpp:27
Definition: sound.hpp:29
Definition: sound.hpp:30
Definition: sound.hpp:22
bool stopsound(int n, int chanid, int fade)
Definition: sound.cpp:572
Definition: sound.hpp:18
Definition: sound.hpp:19
Definition: sound.hpp:18
int playsound(int n, const vec *loc, extentity *ent, int flags, int loops, int fade, int chanid, int radius, int expire)
Definition: sound.cpp:485
Definition: sound.hpp:18
Definition: sound.hpp:42
Definition: sound.hpp:28
Definition: sound.hpp:34
void stopsounds()
Definition: sound.cpp:563
Definition: sound.hpp:19
Definition: sound.hpp:38
void preloadsound(int n)
Definition: sound.cpp:465
Definition: sound.hpp:19
Definition: ents.hpp:102
Definition: sound.hpp:17
void initsound()
Definition: sound.cpp:157
vector with 3 floats and some useful methods.
Definition: geom.hpp:110
Definition: sound.hpp:33
Definition: sound.hpp:36
Definition: sound.hpp:19
Definition: sound.hpp:24
SharedVar< int > soundbufferlen
void clearmapsounds()
Definition: sound.cpp:351
bool nosound
Definition: sound.cpp:39
Definition: sound.hpp:36
Definition: sound.hpp:17
Definition: sound.hpp:16
SharedVar< int > soundfreq
Definition: sound.hpp:17
Definition: sound.hpp:26
Definition: sound.hpp:34
Definition: sound.hpp:19
Definition: sound.hpp:17
Definition: sound.hpp:28
Definition: sound.hpp:45
Definition: sound.hpp:47
Definition: sound.hpp:16
Definition: sound.hpp:25
void sound(int *n)
Definition: sound.cpp:592
Definition: sound.hpp:23
Definition: sound.hpp:44
int playsoundname(const char *s, const vec *loc, int vol, int flags, int loops, int fade, int chanid, int radius, int expire)
Definition: sound.cpp:584
Definition: sound.hpp:23
Definition: sound.hpp:18
uchar flags[MAXBRUSH][MAXBRUSH]
Definition: octaedit.cpp:1742
Definition: sound.hpp:37
Definition: sound.hpp:48
void clear_sound()
Definition: sound.cpp:328
Definition: sound.hpp:37
SharedVar wrapper for primitive/immutable objects.
Definition: SharedVar.hpp:55
Definition: sound.hpp:31
Definition: sound.hpp:23
Definition: sound.hpp:9
Definition: sound.hpp:16
Definition: sound.hpp:29
Definition: sound.hpp:21
Definition: sound.hpp:21
Definition: sound.hpp:16
Definition: sound.hpp:39
Definition: sound.hpp:31
Definition: sound.hpp:16
Definition: sound.hpp:16
Definition: sound.hpp:40
void updatesounds()
Definition: sound.cpp:442
Definition: sound.hpp:35
Definition: sound.hpp:20
Definition: sound.hpp:25
Definition: sound.hpp:19
Definition: sound.hpp:20
Definition: sound.hpp:26
Definition: sound.hpp:32
Definition: sound.hpp:27
Definition: sound.hpp:17