Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
LevelSoundManager Class Reference
Inheritance diagram for LevelSoundManager:

Classes

struct  QueuedSoundBroadcastMultipleUserIdsPacket
struct  QueuedSoundBroadcastPacket
struct  QueuedSoundBroadcastUserIdPacket
struct  QueuedSoundSendPacket

Public Types

using QueuedSoundPacket

Public Member Functions

virtual ::Bedrock::PubSub::Connector< void(::SoundEventIdentifier const &, ::Vec3 const &, int, ::ActorSoundIdentifier const &, bool)> & getOnLevelSoundEventConnector ()
virtual ::Bedrock::PubSub::Connector< void(::PlaySoundOptions const &)> & getOnLevelSoundEventWithVolumeAndPitchConnector ()
virtual ::Bedrock::PubSub::Connector< void(::std::string const &)> & getOnStopLevelSoundEventConnector ()
virtual ::Bedrock::PubSub::Connector< void()> & getOnStopAllLevelSoundsEventConnector ()
virtual ::Bedrock::PubSub::Connector< void()> & getOnStopMusicEventConnector ()
MCAPI LevelSoundManager (::Bedrock::NotNullNonOwnerPtr<::SoundPlayerInterface > soundPlayer, bool isClientSide, ::Bedrock::NotNullNonOwnerPtr<::LevelEventCoordinator > levelEventCoordinator, ::Bedrock::NotNullNonOwnerPtr<::PacketSender > packetSender, bool isServerAuthSoundEnabled)
MCAPI void _queueSoundPacket (::std::variant< ::LevelSoundManager::QueuedSoundSendPacket, ::LevelSoundManager::QueuedSoundBroadcastPacket, ::LevelSoundManager::QueuedSoundBroadcastUserIdPacket, ::LevelSoundManager::QueuedSoundBroadcastMultipleUserIdsPacket > packet)
MCAPI void _stopBroadcastsForPlayer (::NetworkIdentifierWithSubId const &player, ::std::optional<::DimensionType > dimension)
MCAPI void broadcastSoundEvent (::IDimension &dimension, ::SoundEventIdentifier const &soundEvent, ::Vec3 const &pos, int data, ::ActorSoundIdentifier const &actorSoundIdentifier, bool isGlobal, ::Player *primaryLocalPlayer, ::std::optional<::Vec3 > const &fireAtPosition)
MCAPI void broadcastSoundEvent (::IDimension &dimension, ::SharedTypes::Legacy::LevelSoundEvent type, ::Vec3 const &pos, int data, ::ActorSoundIdentifier const &actorSoundIdentifier, bool isGlobal, ::Player *primaryLocalPlayer, ::std::optional<::Vec3 > const &fireAtPosition)
MCAPI ::std::optional<::ServerSoundInstance > createServerSoundInstance (::std::string const &soundEventName, int loopCount, ::std::optional<::NetworkIdentifierWithSubId > recipient, ::std::optional<::BroadcastOptions > broadcast)
MCAPI void onViewRegionMoved (::NetworkIdentifierWithSubId const &player, ::BlockPos const &position, uint radius, ::DimensionType dimension)
MCAPI void playPredictiveSynchronizedSound (::IDimension &dimension, ::SoundEventIdentifier const &soundEvent, ::Vec3 const &pos, ::Player *targetPlayer, int data, ::ActorSoundIdentifier const &actorSoundIdentifier, bool isGlobal, ::std::optional<::Vec3 > const &fireAtPosition)
MCAPI void playPredictiveSynchronizedSound (::IDimension &dimension, ::SharedTypes::Legacy::LevelSoundEvent type, ::Vec3 const &pos, ::Player *targetPlayer, int data, ::ActorSoundIdentifier const &actorSoundIdentifier, bool isGlobal, ::std::optional<::Vec3 > const &fireAtPosition)
MCAPI void playSynchronizedSound_DEPRECATED (::IDimension &dimension, ::SharedTypes::Legacy::LevelSoundEvent type, ::Vec3 const &pos, ::Player *primaryLocalPlayer, int data, ::ActorSoundIdentifier const &actorSoundIdentifier, bool isGlobal, ::std::optional<::Vec3 > const &fireAtPosition)
MCAPI void registerPauseManagerCallback (::Bedrock::PubSub::Connector< void(bool)> &connector)
MCAPI void subscribeToPlayerConnectionEvents (::IPlayerConnectionConnector &connector)
MCAPI void subscribeToPlayerDimensionTransfers (::IPlayerDimensionTransferConnector &connector)
MCAPI void * $ctor (::Bedrock::NotNullNonOwnerPtr<::SoundPlayerInterface > soundPlayer, bool isClientSide, ::Bedrock::NotNullNonOwnerPtr<::LevelEventCoordinator > levelEventCoordinator, ::Bedrock::NotNullNonOwnerPtr<::PacketSender > packetSender, bool isServerAuthSoundEnabled)
MCAPI ::Bedrock::PubSub::Connector< void(::SoundEventIdentifier const &, ::Vec3 const &, int, ::ActorSoundIdentifier const &, bool)> & $getOnLevelSoundEventConnector ()
MCAPI ::Bedrock::PubSub::Connector< void(::PlaySoundOptions const &)> & $getOnLevelSoundEventWithVolumeAndPitchConnector ()
MCAPI ::Bedrock::PubSub::Connector< void(::std::string const &)> & $getOnStopLevelSoundEventConnector ()
MCAPI ::Bedrock::PubSub::Connector< void()> & $getOnStopAllLevelSoundsEventConnector ()
MCAPI ::Bedrock::PubSub::Connector< void()> & $getOnStopMusicEventConnector ()
MCFOLD void $dtor ()

Static Public Member Functions

static MCAPI void ** $vftable ()

Public Attributes

::ll::TypedStorage< 8, 104, ::Bedrock::Owner<::ServerSoundDefinitionRegistry > > mServerSoundDefinitionRegistry
::ll::TypedStorage< 8, 168, ::ServerAudioContentRegistry > mServerAudioContentRegistry
::ll::TypedStorage< 8, 208, ::ServerSoundInstanceManager > mServerSoundInstanceManager
::ll::TypedStorage< 8, 24, ::Bedrock::NonOwnerPointer<::SoundPlayerInterface > > mSoundPlayer
::ll::TypedStorage< 8, 24, ::Bedrock::NotNullNonOwnerPtr<::PacketSender > > mLevelPacketSender
::ll::TypedStorage< 1, 1, bool > mIsClientSide
::ll::TypedStorage< 1, 1, bool > mServerAuthSoundEnabled
::ll::TypedStorage< 8, 24, ::Bedrock::NotNullNonOwnerPtr<::LevelEventCoordinator > const > mLevelEventCoordinator
::ll::TypedStorage< 8, 24, ::std::vector<::std::variant< ::LevelSoundManager::QueuedSoundSendPacket, ::LevelSoundManager::QueuedSoundBroadcastPacket, ::LevelSoundManager::QueuedSoundBroadcastUserIdPacket, ::LevelSoundManager::QueuedSoundBroadcastMultipleUserIdsPacket > > > mSoundPacketQueue
::ll::TypedStorage< 8, 128, ::Bedrock::PubSub::Publisher< void(::SoundEventIdentifier const &, ::Vec3 const &, int, ::ActorSoundIdentifier const &, bool), ::Bedrock::PubSub::ThreadModel::MultiThreaded, 0 > > mOnLevelSoundEvent
::ll::TypedStorage< 8, 128, ::Bedrock::PubSub::Publisher< void(::PlaySoundOptions const &), ::Bedrock::PubSub::ThreadModel::MultiThreaded, 0 > > mOnLevelSoundEventWithVolumeAndPitch
::ll::TypedStorage< 8, 128, ::Bedrock::PubSub::Publisher< void(::std::string const &), ::Bedrock::PubSub::ThreadModel::MultiThreaded, 0 > > mOnStopLevelSoundEvent
::ll::TypedStorage< 8, 128, ::Bedrock::PubSub::Publisher< void(), ::Bedrock::PubSub::ThreadModel::MultiThreaded, 0 > > mOnStopAllLevelSoundsEvent
::ll::TypedStorage< 8, 128, ::Bedrock::PubSub::Publisher< void(), ::Bedrock::PubSub::ThreadModel::MultiThreaded, 0 > > mOnStopMusicEvent
::ll::TypedStorage< 8, 128, ::Bedrock::PubSub::Publisher< void(::BlockPos const &, ::ServerSoundHandle), ::Bedrock::PubSub::ThreadModel::MultiThreaded, 0 > > mOnRecordStartedEvent
::ll::TypedStorage< 8, 128, ::Bedrock::PubSub::Publisher< void(::ServerSoundHandle), ::Bedrock::PubSub::ThreadModel::MultiThreaded, 0 > > mOnRecordStoppedEvent
::ll::TypedStorage< 8, 16, ::Bedrock::PubSub::Subscription > mOnPlayerDisconnectedSubscription
::ll::TypedStorage< 8, 16, ::Bedrock::PubSub::Subscription > mOnPlayerConnectedSubscription
::ll::TypedStorage< 8, 16, ::Bedrock::PubSub::Subscription > mOnPlayerLeftDimensionSubscription
::ll::TypedStorage< 8, 16, ::Bedrock::PubSub::Subscription > mOnPauseStateChangeSubscription
::std::shared_ptr<::Bedrock::EnableNonOwnerReferences::ControlBlock > mControlBlock

Member Typedef Documentation

◆ QueuedSoundPacket

Constructor & Destructor Documentation

◆ LevelSoundManager()

MCAPI LevelSoundManager::LevelSoundManager ( ::Bedrock::NotNullNonOwnerPtr<::SoundPlayerInterface > soundPlayer,
bool isClientSide,
::Bedrock::NotNullNonOwnerPtr<::LevelEventCoordinator > levelEventCoordinator,
::Bedrock::NotNullNonOwnerPtr<::PacketSender > packetSender,
bool isServerAuthSoundEnabled )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

Member Function Documentation

◆ getOnLevelSoundEventConnector()

virtual ::Bedrock::PubSub::Connector< void(::SoundEventIdentifier const &, ::Vec3 const &, int, ::ActorSoundIdentifier const &, bool)> & LevelSoundManager::getOnLevelSoundEventConnector ( )
virtual

◆ getOnLevelSoundEventWithVolumeAndPitchConnector()

virtual ::Bedrock::PubSub::Connector< void(::PlaySoundOptions const &)> & LevelSoundManager::getOnLevelSoundEventWithVolumeAndPitchConnector ( )
virtual

◆ getOnStopLevelSoundEventConnector()

virtual ::Bedrock::PubSub::Connector< void(::std::string const &)> & LevelSoundManager::getOnStopLevelSoundEventConnector ( )
virtual

◆ getOnStopAllLevelSoundsEventConnector()

virtual ::Bedrock::PubSub::Connector< void()> & LevelSoundManager::getOnStopAllLevelSoundsEventConnector ( )
virtual

◆ getOnStopMusicEventConnector()

virtual ::Bedrock::PubSub::Connector< void()> & LevelSoundManager::getOnStopMusicEventConnector ( )
virtual

◆ _queueSoundPacket()

Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _stopBroadcastsForPlayer()

MCAPI void LevelSoundManager::_stopBroadcastsForPlayer ( ::NetworkIdentifierWithSubId const & player,
::std::optional<::DimensionType > dimension )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ broadcastSoundEvent() [1/2]

MCAPI void LevelSoundManager::broadcastSoundEvent ( ::IDimension & dimension,
::SoundEventIdentifier const & soundEvent,
::Vec3 const & pos,
int data,
::ActorSoundIdentifier const & actorSoundIdentifier,
bool isGlobal,
::Player * primaryLocalPlayer,
::std::optional<::Vec3 > const & fireAtPosition )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ broadcastSoundEvent() [2/2]

MCAPI void LevelSoundManager::broadcastSoundEvent ( ::IDimension & dimension,
::SharedTypes::Legacy::LevelSoundEvent type,
::Vec3 const & pos,
int data,
::ActorSoundIdentifier const & actorSoundIdentifier,
bool isGlobal,
::Player * primaryLocalPlayer,
::std::optional<::Vec3 > const & fireAtPosition )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ createServerSoundInstance()

MCAPI ::std::optional<::ServerSoundInstance > LevelSoundManager::createServerSoundInstance ( ::std::string const & soundEventName,
int loopCount,
::std::optional<::NetworkIdentifierWithSubId > recipient,
::std::optional<::BroadcastOptions > broadcast )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ onViewRegionMoved()

MCAPI void LevelSoundManager::onViewRegionMoved ( ::NetworkIdentifierWithSubId const & player,
::BlockPos const & position,
uint radius,
::DimensionType dimension )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ playPredictiveSynchronizedSound() [1/2]

MCAPI void LevelSoundManager::playPredictiveSynchronizedSound ( ::IDimension & dimension,
::SoundEventIdentifier const & soundEvent,
::Vec3 const & pos,
::Player * targetPlayer,
int data,
::ActorSoundIdentifier const & actorSoundIdentifier,
bool isGlobal,
::std::optional<::Vec3 > const & fireAtPosition )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ playPredictiveSynchronizedSound() [2/2]

MCAPI void LevelSoundManager::playPredictiveSynchronizedSound ( ::IDimension & dimension,
::SharedTypes::Legacy::LevelSoundEvent type,
::Vec3 const & pos,
::Player * targetPlayer,
int data,
::ActorSoundIdentifier const & actorSoundIdentifier,
bool isGlobal,
::std::optional<::Vec3 > const & fireAtPosition )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ playSynchronizedSound_DEPRECATED()

MCAPI void LevelSoundManager::playSynchronizedSound_DEPRECATED ( ::IDimension & dimension,
::SharedTypes::Legacy::LevelSoundEvent type,
::Vec3 const & pos,
::Player * primaryLocalPlayer,
int data,
::ActorSoundIdentifier const & actorSoundIdentifier,
bool isGlobal,
::std::optional<::Vec3 > const & fireAtPosition )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ registerPauseManagerCallback()

MCAPI void LevelSoundManager::registerPauseManagerCallback ( ::Bedrock::PubSub::Connector< void(bool)> & connector)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ subscribeToPlayerConnectionEvents()

MCAPI void LevelSoundManager::subscribeToPlayerConnectionEvents ( ::IPlayerConnectionConnector & connector)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ subscribeToPlayerDimensionTransfers()

MCAPI void LevelSoundManager::subscribeToPlayerDimensionTransfers ( ::IPlayerDimensionTransferConnector & connector)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $ctor()

MCAPI void * LevelSoundManager::$ctor ( ::Bedrock::NotNullNonOwnerPtr<::SoundPlayerInterface > soundPlayer,
bool isClientSide,
::Bedrock::NotNullNonOwnerPtr<::LevelEventCoordinator > levelEventCoordinator,
::Bedrock::NotNullNonOwnerPtr<::PacketSender > packetSender,
bool isServerAuthSoundEnabled )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $getOnLevelSoundEventConnector()

MCAPI ::Bedrock::PubSub::Connector< void(::SoundEventIdentifier const &, ::Vec3 const &, int, ::ActorSoundIdentifier const &, bool)> & LevelSoundManager::$getOnLevelSoundEventConnector ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $getOnLevelSoundEventWithVolumeAndPitchConnector()

MCAPI ::Bedrock::PubSub::Connector< void(::PlaySoundOptions const &)> & LevelSoundManager::$getOnLevelSoundEventWithVolumeAndPitchConnector ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $getOnStopLevelSoundEventConnector()

MCAPI ::Bedrock::PubSub::Connector< void(::std::string const &)> & LevelSoundManager::$getOnStopLevelSoundEventConnector ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $getOnStopAllLevelSoundsEventConnector()

MCAPI ::Bedrock::PubSub::Connector< void()> & LevelSoundManager::$getOnStopAllLevelSoundsEventConnector ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $getOnStopMusicEventConnector()

MCAPI ::Bedrock::PubSub::Connector< void()> & LevelSoundManager::$getOnStopMusicEventConnector ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $vftable()

MCAPI void ** Bedrock::EnableNonOwnerReferences::$vftable ( )
staticinherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

The documentation for this class was generated from the following file: