LeviLamina
Loading...
Searching...
No Matches
SoundPlayerInterface.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/utility/EnableNonOwnerReferences.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#ifdef LL_PLAT_S
26 virtual ~SoundPlayerInterface() /*override*/ = default;
27#else // LL_PLAT_C
28 virtual ~SoundPlayerInterface() /*override*/;
29#endif
30
31 virtual uint64 play(::std::string const&, ::Vec3 const&, float, float) = 0;
32
33 virtual uint64 playUI(::std::string const&, float, float) = 0;
34
35 virtual void playMusic(::std::string const&, float, uint&) = 0;
36
37 virtual void playMusic(::std::string const&, float) = 0;
38
39 virtual bool isLoadingMusic() const = 0;
40
41 virtual bool isPlayingMusicEvent(::std::string const&) const = 0;
42
43 virtual bool isPlayingMusic(::Core::PathView) const = 0;
44
45 virtual void fadeToStopMusic(float) = 0;
46
47 virtual void setMusicCommandVolumeMultiplier(float) = 0;
48
49 virtual void fadeOut(uint64 soundHandle, float duration) = 0;
50
51 virtual void stopMusic() = 0;
52
53 virtual void stop(::std::string const&) = 0;
54
55 virtual void stop(uint64) = 0;
56
57 virtual void stopAllSounds() = 0;
58
59 virtual void pauseAllPlayingSounds() = 0;
60
61 virtual void resumeAllPreviouslyPlayingSounds() = 0;
62
63 virtual void pauseMusic(bool) = 0;
64
65 virtual ::Core::PathBuffer<::std::string> const getCurrentlyPlayingMusicName() = 0;
66
67 virtual bool getItem(::std::string const&, ::Core::PathView, ::SoundItem&) const = 0;
68
69 virtual uint64 registerLoop(::std::string const&, ::std::function<void(::LoopingSoundState&)>, float, float) = 0;
70
71 virtual void unregisterLoop(uint64, bool) = 0;
72
73 virtual bool isPlayingSound(uint64) const = 0;
74
75 virtual bool isPlayingSound(::Core::Path const&) const = 0;
76
77 virtual uint64 playAttached(::std::string const&, ::std::function<void(::SoundInstanceProperties&)>&&) = 0;
78
79 virtual void stopAllDelayedSoundActions() = 0;
80
81 virtual ::std::optional<::PlayingSoundAttributes> tryGetPlayingSoundAttributes(uint64) const = 0;
82
83 virtual ::std::optional<::LoopingSoundAttributes> tryGetLoopingSoundAttributes(uint64) const = 0;
84 // NOLINTEND
85
86public:
87 // destructor thunk
88 // NOLINTBEGIN
89 MCNAPI void $dtor();
90 // NOLINTEND
91
92public:
93 // virtual function thunks
94 // NOLINTBEGIN
95
96 // NOLINTEND
97};
Definition EnableNonOwnerReferences.h:7
Definition PathView.h:17
Definition Path.h:10
Definition SoundItem.h:5
Definition SoundPlayerInterface.h:21
MCAPI void $dtor()
Definition Vec3.h:10
Definition LoopingSoundAttributes.h:8
Definition LoopingSoundState.h:5
Definition PlayingSoundAttributes.h:5
Definition SoundInstanceProperties.h:5