LeviLamina
Loading...
Searching...
No Matches
SoundSystemBase.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/file/PathBuffer.h"
7#include "mc/deps/core/sound/SoundFormat.h"
8
9// auto generated forward declare list
10// clang-format off
11class SoundEvent;
12class SoundItem;
17struct SoundSystemGUID;
18namespace Core { class Path; }
19// clang-format on
20
22public:
23 // member variables
24 // NOLINTBEGIN
27 // NOLINTEND
28
29public:
30 // prevent constructor by default
31 SoundSystemBase& operator=(SoundSystemBase const&);
34
35public:
36 // virtual functions
37 // NOLINTBEGIN
38 // vIndex: 0
39 virtual ~SoundSystemBase() = default;
40
41 // vIndex: 1
42 virtual bool preinit();
43
44 // vIndex: 2
45 virtual void init();
46
47 // vIndex: 3
48 virtual void destroy();
49
50 // vIndex: 4
51 virtual void setOutputDevice(::SoundSystemGUID&);
52
53 // vIndex: 5
54 virtual void setAsyncLoadFunction(::std::function<void(::SoundItem const&, ::std::function<void()>)>);
55
56 // vIndex: 6
57 virtual void enable(bool);
58
59 // vIndex: 7
60 virtual void mute(bool);
61
62 // vIndex: 8
63 virtual bool addListener(int const);
64
65 // vIndex: 9
66 virtual void removeListener(int const);
67
68 // vIndex: 10
69 virtual void setListenerDirection(int const, ::glm::vec3 const&, ::glm::vec3 const&);
70
71 // vIndex: 11
72 virtual void setListenerPos(int const, float, float, float);
73
74 // vIndex: 12
75 virtual void setListenerVelocity(int const, float, float, float);
76
77 // vIndex: 13
78 virtual void setMainVolume(float);
79
80 // vIndex: 14
81 virtual void setMusicVolume(float);
82
83 // vIndex: 15
84 virtual void setSoundVolume(float);
85
86 // vIndex: 16
87 virtual void setSoundCategoryVolume(::std::string const&, float);
88
89 // vIndex: 17
90 virtual void setTTSVolume(float);
91
92 // vIndex: 18
93 virtual bool load(::Core::Path const&, bool);
94
95 // vIndex: 19
96 virtual bool loadRawFromMemory(::Core::Path const&, char const*, uint64, int, int, ::SoundFormat);
97
98 // vIndex: 20
99 virtual bool loadFromMemory(::Core::Path const&, char const*, uint64);
100
101 // vIndex: 21
102 virtual bool loadExternalEvent(::std::string const&);
103
104 // vIndex: 22
105 virtual void unload(::Core::Path const&);
106
107 // vIndex: 23
108 virtual void unloadAll();
109
110 // vIndex: 24
111 virtual bool isSoundLoaded(::Core::Path const&);
112
113 // vIndex: 25
114 virtual bool usesSoundBanks();
115
116 // vIndex: 26
117 virtual void loadSoundBank(::std::string const&, bool);
118
119 // vIndex: 27
120 virtual void unloadSoundBank(::std::string const&);
121
122 // vIndex: 28
123 virtual void play(::std::string const&);
124
125 // vIndex: 29
126 virtual void pause(::std::string const&);
127
128 // vIndex: 31
129 virtual void stop(::std::string const&);
130
131 // vIndex: 30
132 virtual void stop(uint64);
133
134 // vIndex: 32
135 virtual uint64 playEvent(::SoundEvent const&, ::std::string const&, float, float);
136
137 // vIndex: 33
138 virtual uint64 playEventAt(::SoundEvent const&, ::std::string const&, float, float, float, float, float);
139
140 // vIndex: 34
141 virtual uint64 playAt(
142 ::Core::Path const&,
143 ::SoundEvent const*,
144 ::std::string const&,
145 uint64,
146 float,
147 float,
148 float,
149 float,
150 float,
151 bool,
152 float,
153 float,
154 bool,
155 bool
156 );
157
158 // vIndex: 35
159 virtual uint64
160 playEventAttached(::SoundEvent const&, ::std::string const&, ::std::function<void(::SoundInstanceProperties&)>&&);
161
162 // vIndex: 36
163 virtual bool isPlayingSound(uint64) const;
164
165 // vIndex: 37
166 virtual void fadeOut(uint64, float) const;
167
168 // vIndex: 38
169 virtual void playMusic(::std::string const&, ::SoundItem const&);
170
171 // vIndex: 39
172 virtual bool isPlayingMusicEvent(::std::string const&) const;
173
174 // vIndex: 40
175 virtual bool isPlayingMusic(::Core::Path const&) const;
176
177 // vIndex: 41
178 virtual bool isLoadingMusic() const;
179
180 // vIndex: 42
181 virtual ::Core::PathBuffer<::std::string> const& getCurrentlyPlayingMusicName() const;
182
183 // vIndex: 43
184 virtual ::std::string getCurrentlyPlayingEventName() const;
185
186 // vIndex: 44
187 virtual void stopMusic();
188
189 // vIndex: 45
190 virtual void stopRecords();
191
192 // vIndex: 46
193 virtual void stopAllSounds();
194
195 // vIndex: 47
196 virtual void fadeMusicOut(float);
197
198 // vIndex: 48
199 virtual bool isMusicChannelPlaying() const;
200
201 // vIndex: 49
202 virtual void pauseMusic(bool);
203
204 // vIndex: 50
205 virtual void update(float);
206
207 // vIndex: 51
208 virtual uint64 registerLoop(
209 ::SoundItem const&,
210 ::std::weak_ptr<::SoundEvent> const,
211 ::std::string const&,
212 ::std::function<void(::LoopingSoundState&)>,
213 float,
214 float
215 );
216
217 // vIndex: 52
218 virtual void unregisterLoop(uint64, bool);
219
220 // vIndex: 53
221 virtual void displayDebugStats(::std::string&) const;
222
223 // vIndex: 54
224 virtual void startSnapshot(::std::string const&);
225
226 // vIndex: 55
227 virtual void stopSnapshot(::std::string const&);
228
229 // vIndex: 56
230 virtual void stopAllSnapshots();
231
232 // vIndex: 57
233 virtual uint64 getNewSoundHandle();
234
235 // vIndex: 58
236 virtual ::std::optional<::PlayingSoundAttributes> tryGetPlayingSoundAttributes(uint64) const;
237
238 // vIndex: 59
239 virtual ::std::optional<::LoopingSoundAttributes> tryGetLoopingSoundAttributes(uint64) const;
240 // NOLINTEND
241
242public:
243 // destructor thunk
244 // NOLINTBEGIN
245
246 // NOLINTEND
247
248public:
249 // virtual function thunks
250 // NOLINTBEGIN
251
252 // NOLINTEND
253};
Definition Path.h:15
Definition Path.h:16
Definition SoundEvent.h:5
Definition SoundItem.h:5
Definition SoundSystemBase.h:21
Definition LoopingSoundAttributes.h:8
Definition LoopingSoundState.h:5
Definition PlayingSoundAttributes.h:5
Definition SoundInstanceProperties.h:5
Definition SoundSystemGUID.h:5
Definition Alias.h:14