LeviLamina
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/core/file/PathBuffer.h"
7#include "mc/deps/core/sound/SoundPlayerInterface.h"
8
9// auto generated forward declare list
10// clang-format off
11class Vec3;
16namespace Core { class Path; }
17namespace Core { class PathView; }
18class SoundItem;
19// clang-format on
20
22public:
23 // virtual functions
24 // NOLINTBEGIN
25 virtual uint64 play(::std::string const&, ::Vec3 const&, float, float) /*override*/;
26
27 virtual uint64 playUI(::std::string const&, float, float) /*override*/;
28
29 virtual void playMusic(::std::string const&, float, uint&) /*override*/;
30
31 virtual void playMusic(::std::string const&, float) /*override*/;
32
33 virtual bool isLoadingMusic() const /*override*/;
34
35 virtual bool isPlayingMusicEvent(::std::string const&) const /*override*/;
36
37 virtual bool isPlayingMusic(::Core::PathView) const /*override*/;
38
39 virtual ::Core::PathBuffer<::std::string> const getCurrentlyPlayingMusicName() /*override*/;
40
41 virtual bool getItem(::std::string const&, ::Core::PathView, ::SoundItem&) const /*override*/;
42
43 virtual void fadeToStopMusic(float) /*override*/;
44
45 virtual void setMusicCommandVolumeMultiplier(float) /*override*/;
46
47 virtual void pauseMusic(bool) /*override*/;
48
49 virtual void stopMusic() /*override*/;
50
51 virtual uint64
52 registerLoop(::std::string const&, ::std::function<void(::LoopingSoundState&)>, float, float) /*override*/;
53
54 virtual void unregisterLoop(uint64, bool) /*override*/;
55
56 virtual void stop(::std::string const&) /*override*/;
57
58 virtual void stop(uint64) /*override*/;
59
60 virtual void fadeOut(uint64 soundHandle, float duration) /*override*/;
61
62 virtual void stopAllSounds() /*override*/;
63
64 virtual void pauseAllPlayingSounds() /*override*/;
65
66 virtual void resumeAllPreviouslyPlayingSounds() /*override*/;
67
68 virtual bool isPlayingSound(uint64) const /*override*/;
69
70 virtual bool isPlayingSound(::Core::Path const&) const /*override*/;
71
72 virtual uint64 playAttached(::std::string const&, ::std::function<void(::SoundInstanceProperties&)>&&) /*override*/;
73
74 virtual void stopAllDelayedSoundActions() /*override*/;
75
76 virtual ::std::optional<::PlayingSoundAttributes> tryGetPlayingSoundAttributes(uint64) const /*override*/;
77
78 virtual ::std::optional<::LoopingSoundAttributes> tryGetLoopingSoundAttributes(uint64) const /*override*/;
79
80 virtual ~NullSoundPlayer() /*override*/ = default;
81 // NOLINTEND
82
83public:
84 // virtual function thunks
85 // NOLINTBEGIN
86 MCNAPI uint64 $play(::std::string const&, ::Vec3 const&, float, float);
87
88 MCNAPI uint64 $playUI(::std::string const&, float, float);
89
90 MCNAPI void $playMusic(::std::string const&, float, uint&);
91
92 MCNAPI void $playMusic(::std::string const&, float);
93
94 MCNAPI bool $isLoadingMusic() const;
95
96 MCNAPI bool $isPlayingMusicEvent(::std::string const&) const;
97
99
100 MCNAPI ::Core::PathBuffer<::std::string> const $getCurrentlyPlayingMusicName();
101
102 MCNAPI bool $getItem(::std::string const&, ::Core::PathView, ::SoundItem&) const;
103
104 MCNAPI void $fadeToStopMusic(float);
105
107
108 MCNAPI void $pauseMusic(bool);
109
110 MCNAPI void $stopMusic();
111
112 MCNAPI uint64 $registerLoop(::std::string const&, ::std::function<void(::LoopingSoundState&)>, float, float);
113
114 MCNAPI void $unregisterLoop(uint64, bool);
115
116 MCNAPI void $stop(::std::string const&);
117
118 MCNAPI void $stop(uint64);
119
120 MCNAPI void $fadeOut(uint64 soundHandle, float duration);
121
122 MCNAPI void $stopAllSounds();
123
125
127
128 MCNAPI bool $isPlayingSound(uint64) const;
129
130 MCNAPI bool $isPlayingSound(::Core::Path const&) const;
131
132 MCNAPI uint64 $playAttached(::std::string const&, ::std::function<void(::SoundInstanceProperties&)>&&);
133
135
136 MCNAPI ::std::optional<::PlayingSoundAttributes> $tryGetPlayingSoundAttributes(uint64) const;
137
138 MCNAPI ::std::optional<::LoopingSoundAttributes> $tryGetLoopingSoundAttributes(uint64) const;
139
140
141 // NOLINTEND
142
143public:
144 // vftables
145 // NOLINTBEGIN
146 MCNAPI static void** $vftable();
147 // NOLINTEND
148};
Definition PathView.h:17
Definition Path.h:10
Definition NullSoundPlayer.h:21
MCAPI void $playMusic(::std::string const &, float)
MCAPI bool $isPlayingSound(::Core::Path const &) const
MCAPI uint64 $playAttached(::std::string const &, ::std::function< void(::SoundInstanceProperties &)> &&)
MCAPI uint64 $registerLoop(::std::string const &, ::std::function< void(::LoopingSoundState &)>, float, float)
MCAPI void $stopAllSounds()
static MCAPI void ** $vftable()
MCAPI void $stop(::std::string const &)
MCAPI void $pauseMusic(bool)
MCAPI bool $isPlayingMusicEvent(::std::string const &) const
MCAPI void $stopMusic()
MCAPI ::std::optional<::PlayingSoundAttributes > $tryGetPlayingSoundAttributes(uint64) const
MCAPI void $setMusicCommandVolumeMultiplier(float)
MCAPI bool $getItem(::std::string const &, ::Core::PathView, ::SoundItem &) const
MCAPI ::std::optional<::LoopingSoundAttributes > $tryGetLoopingSoundAttributes(uint64) const
MCAPI void $stopAllDelayedSoundActions()
MCAPI void $playMusic(::std::string const &, float, uint &)
MCAPI void $stop(uint64)
MCAPI void $resumeAllPreviouslyPlayingSounds()
MCAPI bool $isPlayingSound(uint64) const
MCAPI uint64 $play(::std::string const &, ::Vec3 const &, float, float)
MCAPI void $unregisterLoop(uint64, bool)
MCAPI void $pauseAllPlayingSounds()
MCAPI bool $isPlayingMusic(::Core::PathView) const
MCAPI void $fadeOut(uint64 soundHandle, float duration)
MCAPI uint64 $playUI(::std::string const &, float, float)
MCAPI ::Core::PathBuffer<::std::string > const $getCurrentlyPlayingMusicName()
MCAPI bool $isLoadingMusic() const
MCAPI void $fadeToStopMusic(float)
Definition SoundItem.h:5
Definition SoundPlayerInterface.h:21
Definition Vec3.h:10
Definition LoopingSoundAttributes.h:8
Definition LoopingSoundState.h:5
Definition PlayingSoundAttributes.h:5
Definition SoundInstanceProperties.h:5