Skip to content
LeviLamina

API Reference

On this page

Loading...
Searching...
No Matches
NullSoundPlayer.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/audio/SoundPauseSource.h"
7#include "mc/deps/audio/SoundPlayerInterface.h"
8
9// auto generated forward declare list
10// clang-format off
12class Vec3;
15struct PlayMusicOptions;
16struct PlaySoundOptions;
19namespace Core { class Path; }
20namespace Core { class PathView; }
21class SoundItem;
22// clang-format on
23
25public:
26 // virtual functions
27 // NOLINTBEGIN
28 virtual uint64
29 play(::std::string const&, ::Vec3 const&, float, float, ::std::optional<::ServerSoundHandle>) /*override*/;
30
31 virtual uint64 play(::PlaySoundOptions) /*override*/;
32
33 virtual uint64 playUI(::std::string const&, float, float) /*override*/;
34
35 virtual ::std::optional<::std::string> getSubtitle(::std::string const&) const /*override*/;
36
37 virtual void playMusic(::PlayMusicOptions) /*override*/;
38
39 virtual void playMusic(::PlayMusicOptions, uint&) /*override*/;
40
41 virtual bool isLoadingMusic() const /*override*/;
42
43 virtual bool isPlayingMusicEvent(::std::string const&) const /*override*/;
44
45 virtual bool isPlayingMusic(::Core::PathView) const /*override*/;
46
47 virtual ::Core::PathView getCurrentlyPlayingMusicPath() const /*override*/;
48
49 virtual bool getItem(::std::string const&, ::Core::PathView, ::SoundItem&) const /*override*/;
50
51 virtual void fadeToStopMusic(float) /*override*/;
52
53 virtual void setMusicCommandVolumeMultiplier(float) /*override*/;
54
55 virtual void pauseMusic(bool) /*override*/;
56
57 virtual void stopMusic() /*override*/;
58
59 virtual uint64
60 registerLoop(::std::string const&, ::std::function<void(::LoopingSoundState&)>, float, float) /*override*/;
61
62 virtual void unregisterLoop(uint64, bool) /*override*/;
63
64 virtual void stop(::std::string const&) /*override*/;
65
66 virtual void stop(uint64) /*override*/;
67
68 virtual void stop(::ServerSoundHandle) /*override*/;
69
70 virtual void setVolume(::ServerSoundHandle, float) /*override*/;
71
72 virtual void setPitch(::ServerSoundHandle, float) /*override*/;
73
74 virtual void fade(::ServerSoundHandle, float, float) /*override*/;
75
76 virtual void setPlaybackPosition(::ServerSoundHandle, float) /*override*/;
77
78 virtual void pause(::ServerSoundHandle, ::SoundPauseSource) /*override*/;
79
80 virtual void resume(::ServerSoundHandle, ::SoundPauseSource) /*override*/;
81
82 virtual void fadeOut(uint64, float) /*override*/;
83
84 virtual void stopAllSounds() /*override*/;
85
86 virtual void pauseAllPlayingSounds(::SoundPauseSource) /*override*/;
87
88 virtual void resumeAllPreviouslyPlayingSounds(::SoundPauseSource) /*override*/;
89
90 virtual bool isPlayingSound(uint64) const /*override*/;
91
92 virtual bool isPlayingSound(::Core::Path const&) const /*override*/;
93
94 virtual bool isPlayingSound(::ServerSoundHandle) const /*override*/;
95
96 virtual bool wasSoundStoppedExplicitly(::ServerSoundHandle) const /*override*/;
97
98 virtual uint64 playAttached(::std::string const&, ::std::function<void(::SoundInstanceProperties&)>&&) /*override*/;
99
100 virtual ::std::optional<::PlayingSoundAttributes> tryGetPlayingSoundAttributes(uint64) const /*override*/;
101
102 virtual ::std::optional<::PlayingSoundAttributes> tryGetPlayingSoundAttributes(::ServerSoundHandle) const
103 /*override*/;
104
105 virtual ::std::optional<::LoopingSoundAttributes> tryGetLoopingSoundAttributes(uint64) const /*override*/;
106 // NOLINTEND
107
108public:
109 // virtual function thunks
110 // NOLINTBEGIN
111 MCNAPI uint64 $play(::std::string const&, ::Vec3 const&, float, float, ::std::optional<::ServerSoundHandle>);
112
113 MCNAPI uint64 $play(::PlaySoundOptions);
114
115 MCNAPI uint64 $playUI(::std::string const&, float, float);
116
117 MCNAPI ::std::optional<::std::string> $getSubtitle(::std::string const&) const;
118
120
121 MCNAPI void $playMusic(::PlayMusicOptions, uint&);
122
123 MCNAPI bool $isLoadingMusic() const;
124
125 MCNAPI bool $isPlayingMusicEvent(::std::string const&) const;
126
128
129 MCNAPI ::Core::PathView $getCurrentlyPlayingMusicPath() const;
130
131 MCNAPI bool $getItem(::std::string const&, ::Core::PathView, ::SoundItem&) const;
132
133 MCNAPI void $fadeToStopMusic(float);
134
136
137 MCNAPI void $pauseMusic(bool);
138
139 MCNAPI void $stopMusic();
140
141 MCNAPI uint64 $registerLoop(::std::string const&, ::std::function<void(::LoopingSoundState&)>, float, float);
142
143 MCNAPI void $unregisterLoop(uint64, bool);
144
145 MCNAPI void $stop(::std::string const&);
146
147 MCNAPI void $stop(uint64);
148
150
151 MCNAPI void $setVolume(::ServerSoundHandle, float);
152
153 MCNAPI void $setPitch(::ServerSoundHandle, float);
154
155 MCNAPI void $fade(::ServerSoundHandle, float, float);
156
158
159 MCNAPI void $pause(::ServerSoundHandle, ::SoundPauseSource);
160
161 MCNAPI void $resume(::ServerSoundHandle, ::SoundPauseSource);
162
163 MCNAPI void $fadeOut(uint64, float);
164
165 MCNAPI void $stopAllSounds();
166
167 MCNAPI void $pauseAllPlayingSounds(::SoundPauseSource);
168
169 MCNAPI void $resumeAllPreviouslyPlayingSounds(::SoundPauseSource);
170
171 MCNAPI bool $isPlayingSound(uint64) const;
172
173 MCNAPI bool $isPlayingSound(::Core::Path const&) const;
174
176
178
179 MCNAPI uint64 $playAttached(::std::string const&, ::std::function<void(::SoundInstanceProperties&)>&&);
180
181 MCNAPI ::std::optional<::PlayingSoundAttributes> $tryGetPlayingSoundAttributes(uint64) const;
182
183 MCNAPI ::std::optional<::PlayingSoundAttributes> $tryGetPlayingSoundAttributes(::ServerSoundHandle) const;
184
185 MCNAPI ::std::optional<::LoopingSoundAttributes> $tryGetLoopingSoundAttributes(uint64) const;
186
187
188 // NOLINTEND
189};
Definition PathView.h:19
Definition Path.h:10
Definition NullSoundPlayer.h:24
MCAPI void $pause(::ServerSoundHandle, ::SoundPauseSource)
MCAPI void $playMusic(::PlayMusicOptions, uint &)
MCAPI void $resumeAllPreviouslyPlayingSounds(::SoundPauseSource)
MCAPI ::std::optional<::PlayingSoundAttributes > $tryGetPlayingSoundAttributes(::ServerSoundHandle) const
MCAPI bool $isPlayingSound(::Core::Path const &) const
MCAPI void $setVolume(::ServerSoundHandle, float)
MCAPI uint64 $playAttached(::std::string const &, ::std::function< void(::SoundInstanceProperties &)> &&)
MCAPI uint64 $registerLoop(::std::string const &, ::std::function< void(::LoopingSoundState &)>, float, float)
MCAPI::Core::PathView $getCurrentlyPlayingMusicPath() const
MCAPI void $stopAllSounds()
MCAPI void $stop(::std::string const &)
MCAPI void $pauseMusic(bool)
MCAPI void $fade(::ServerSoundHandle, float, float)
MCAPI bool $isPlayingMusicEvent(::std::string const &) const
MCAPI bool $isPlayingSound(::ServerSoundHandle) const
MCAPI ::std::optional<::std::string > $getSubtitle(::std::string const &) const
MCAPI uint64 $play(::std::string const &, ::Vec3 const &, float, float, ::std::optional<::ServerSoundHandle >)
MCAPI void $stopMusic()
MCAPI void $stop(::ServerSoundHandle)
MCAPI ::std::optional<::PlayingSoundAttributes > $tryGetPlayingSoundAttributes(uint64) const
MCAPI void $setMusicCommandVolumeMultiplier(float)
MCAPI bool $getItem(::std::string const &, ::Core::PathView, ::SoundItem &) const
MCAPI void $fadeOut(uint64, float)
MCAPI ::std::optional<::LoopingSoundAttributes > $tryGetLoopingSoundAttributes(uint64) const
MCAPI void $playMusic(::PlayMusicOptions)
MCAPI void $pauseAllPlayingSounds(::SoundPauseSource)
MCAPI void $stop(uint64)
MCAPI bool $isPlayingSound(uint64) const
MCAPI uint64 $play(::PlaySoundOptions)
MCAPI void $resume(::ServerSoundHandle, ::SoundPauseSource)
MCAPI void $setPlaybackPosition(::ServerSoundHandle, float)
MCAPI bool $wasSoundStoppedExplicitly(::ServerSoundHandle) const
MCAPI void $unregisterLoop(uint64, bool)
MCAPI bool $isPlayingMusic(::Core::PathView) const
MCAPI uint64 $playUI(::std::string const &, float, float)
MCAPI void $setPitch(::ServerSoundHandle, float)
MCAPI bool $isLoadingMusic() const
MCAPI void $fadeToStopMusic(float)
Definition ServerSoundHandle.h:5
Definition SoundItem.h:5
Definition SoundPlayerInterface.h:24
Definition Vec3.h:10
Definition LoopingSoundAttributes.h:8
Definition LoopingSoundState.h:5
Definition PlayMusicOptions.h:5
Definition PlaySoundOptions.h:10
Definition PlayingSoundAttributes.h:5
Definition SoundInstanceProperties.h:5