3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/deps/core/file/PathBuffer.h"
7#include "mc/deps/core/sound/SoundPlayerInterface.h"
16namespace Core {
class Path; }
25 virtual uint64 play(::std::string
const&,
::Vec3 const&,
float,
float) ;
27 virtual uint64 playUI(::std::string
const&,
float,
float) ;
29 virtual void playMusic(::std::string
const&,
float, uint&) ;
31 virtual void playMusic(::std::string
const&,
float) ;
33 virtual bool isLoadingMusic()
const ;
35 virtual bool isPlayingMusicEvent(::std::string
const&)
const ;
39 virtual ::Core::PathBuffer<::std::string>
const getCurrentlyPlayingMusicName() ;
43 virtual void fadeToStopMusic(
float) ;
45 virtual void setMusicCommandVolumeMultiplier(
float) ;
47 virtual void pauseMusic(
bool) ;
49 virtual void stopMusic() ;
52 registerLoop(::std::string
const&, ::std::function<
void(
::LoopingSoundState&)>,
float,
float) ;
54 virtual void unregisterLoop(uint64,
bool) ;
56 virtual void stop(::std::string
const&) ;
58 virtual void stop(uint64) ;
60 virtual void fadeOut(uint64 soundHandle,
float duration) ;
62 virtual void stopAllSounds() ;
64 virtual void pauseAllPlayingSounds() ;
66 virtual void resumeAllPreviouslyPlayingSounds() ;
68 virtual bool isPlayingSound(uint64)
const ;
74 virtual void stopAllDelayedSoundActions() ;
76 virtual ::std::optional<::PlayingSoundAttributes> tryGetPlayingSoundAttributes(uint64)
const ;
78 virtual ::std::optional<::LoopingSoundAttributes> tryGetLoopingSoundAttributes(uint64)
const ;
86 MCNAPI uint64
$play(::std::string
const&,
::Vec3 const&,
float,
float);
88 MCNAPI uint64
$playUI(::std::string
const&,
float,
float);
90 MCNAPI
void $playMusic(::std::string
const&,
float, uint&);
116 MCNAPI
void $stop(::std::string
const&);
120 MCNAPI
void $fadeOut(uint64 soundHandle,
float duration);
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 ::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 $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 SoundPlayerInterface.h:21
Definition LoopingSoundAttributes.h:8
Definition LoopingSoundState.h:5
Definition PlayingSoundAttributes.h:5
Definition SoundInstanceProperties.h:5