3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/deps/audio/SoundPauseSource.h"
7#include "mc/deps/audio/SoundPlayerInterface.h"
19namespace Core {
class Path; }
29 play(::std::string
const&,
::Vec3 const&,
float,
float, ::std::optional<::ServerSoundHandle>) ;
33 virtual uint64 playUI(::std::string
const&,
float,
float) ;
35 virtual ::std::optional<::std::string> getSubtitle(::std::string
const&)
const ;
41 virtual bool isLoadingMusic()
const ;
43 virtual bool isPlayingMusicEvent(::std::string
const&)
const ;
47 virtual ::Core::PathView getCurrentlyPlayingMusicPath()
const ;
51 virtual void fadeToStopMusic(
float) ;
53 virtual void setMusicCommandVolumeMultiplier(
float) ;
55 virtual void pauseMusic(
bool) ;
57 virtual void stopMusic() ;
60 registerLoop(::std::string
const&, ::std::function<
void(
::LoopingSoundState&)>,
float,
float) ;
62 virtual void unregisterLoop(uint64,
bool) ;
64 virtual void stop(::std::string
const&) ;
66 virtual void stop(uint64) ;
82 virtual void fadeOut(uint64,
float) ;
84 virtual void stopAllSounds() ;
86 virtual void pauseAllPlayingSounds(::SoundPauseSource) ;
88 virtual void resumeAllPreviouslyPlayingSounds(::SoundPauseSource) ;
90 virtual bool isPlayingSound(uint64)
const ;
100 virtual ::std::optional<::PlayingSoundAttributes> tryGetPlayingSoundAttributes(uint64)
const ;
102 virtual ::std::optional<::PlayingSoundAttributes> tryGetPlayingSoundAttributes(
::ServerSoundHandle)
const
105 virtual ::std::optional<::LoopingSoundAttributes> tryGetLoopingSoundAttributes(uint64)
const ;
111 MCNAPI uint64
$play(::std::string
const&,
::Vec3 const&,
float,
float, ::std::optional<::ServerSoundHandle>);
115 MCNAPI uint64
$playUI(::std::string
const&,
float,
float);
117 MCNAPI ::std::optional<::std::string>
$getSubtitle(::std::string
const&)
const;
145 MCNAPI
void $stop(::std::string
const&);
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 $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 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 SoundPlayerInterface.h:24
Definition LoopingSoundAttributes.h:8
Definition LoopingSoundState.h:5
Definition PlayMusicOptions.h:5
Definition PlaySoundOptions.h:10
Definition PlayingSoundAttributes.h:5
Definition SoundInstanceProperties.h:5