M&B: Bannerlord 1.2.7
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.Engine.SoundManager Class Reference

Static Public Member Functions

static void SetListenerFrame (MatrixFrame frame)
 
static void SetListenerFrame (MatrixFrame frame, Vec3 attenuationPosition)
 
static MatrixFrame GetListenerFrame ()
 
static Vec3 GetAttenuationPosition ()
 
static void Reset ()
 
static bool StartOneShotEvent (string eventFullName, in Vec3 position, string paramName, float paramValue)
 
static bool StartOneShotEvent (string eventFullName, in Vec3 position)
 
static void SetState (string stateGroup, string state)
 
static SoundEvent CreateEvent (string eventFullName, Scene scene)
 
static void LoadEventFileAux (string soundBank, bool decompressSamples)
 
static void AddSoundClientWithId (ulong clientId)
 
static void DeleteSoundClientWithId (ulong clientId)
 
static void SetGlobalParameter (string parameterName, float value)
 
static int GetEventGlobalIndex (string eventFullName)
 
static void InitializeVoicePlayEvent ()
 
static void CreateVoiceEvent ()
 
static void DestroyVoiceEvent (int id)
 
static void FinalizeVoicePlayEvent ()
 
static void StartVoiceRecording ()
 
static void StopVoiceRecording ()
 
static void GetVoiceData (byte[] voiceBuffer, int chunkSize, out int readBytesLength)
 
static void UpdateVoiceToPlay (byte[] voiceBuffer, int length, int index)
 
static void AddXBOXRemoteUser (System.UInt64 XUID, System.UInt64 deviceID, bool canSendMicSound, bool canSendTextSound, bool canSendText, bool canReceiveSound, bool canReceiveText)
 
static void InitializeXBOXSoundManager ()
 
static void ApplyPushToTalk (bool pushed)
 
static void ClearXBOXSoundManager ()
 
static void UpdateXBOXLocalUser ()
 
static void UpdateXBOXChatCommunicationFlags (System.UInt64 XUID, bool canSendMicSound, bool canSendTextSound, bool canSendText, bool canReceiveSound, bool canReceiveText)
 
static void RemoveXBOXRemoteUser (System.UInt64 XUID)
 
static void ProcessDataToBeReceived (System.UInt64 senderDeviceID, byte[] data, System.UInt32 dataSize)
 
static void ProcessDataToBeSent (ref int numData)
 
static void HandleStateChanges ()
 
static void GetSizeOfDataToBeSentAt (int index, ref System.UInt32 byteCount, ref System.UInt32 numReceivers)
 
static bool GetDataToBeSentAt (int index, byte[] buffer, System.UInt64[] receivers, ref bool transportGuaranteed)
 
static void ClearDataToBeSent ()
 
static void CompressData (int clientID, byte[] buffer, int length, byte[] compressedBuffer, out int compressedBufferLength)
 
static void DecompressData (int clientID, byte[] compressedBuffer, int compressedBufferLength, byte[] decompressedBuffer, out int decompressedBufferLength)
 

Member Function Documentation

◆ SetListenerFrame() [1/2]

static void TaleWorlds.Engine.SoundManager.SetListenerFrame ( MatrixFrame  frame)
static

◆ SetListenerFrame() [2/2]

static void TaleWorlds.Engine.SoundManager.SetListenerFrame ( MatrixFrame  frame,
Vec3  attenuationPosition 
)
static

◆ GetListenerFrame()

static MatrixFrame TaleWorlds.Engine.SoundManager.GetListenerFrame ( )
static

◆ GetAttenuationPosition()

static Vec3 TaleWorlds.Engine.SoundManager.GetAttenuationPosition ( )
static

◆ Reset()

static void TaleWorlds.Engine.SoundManager.Reset ( )
static

◆ StartOneShotEvent() [1/2]

static bool TaleWorlds.Engine.SoundManager.StartOneShotEvent ( string  eventFullName,
in Vec3  position,
string  paramName,
float  paramValue 
)
static

◆ StartOneShotEvent() [2/2]

static bool TaleWorlds.Engine.SoundManager.StartOneShotEvent ( string  eventFullName,
in Vec3  position 
)
static

◆ SetState()

static void TaleWorlds.Engine.SoundManager.SetState ( string  stateGroup,
string  state 
)
static

◆ CreateEvent()

static SoundEvent TaleWorlds.Engine.SoundManager.CreateEvent ( string  eventFullName,
Scene  scene 
)
static

◆ LoadEventFileAux()

static void TaleWorlds.Engine.SoundManager.LoadEventFileAux ( string  soundBank,
bool  decompressSamples 
)
static

◆ AddSoundClientWithId()

static void TaleWorlds.Engine.SoundManager.AddSoundClientWithId ( ulong  clientId)
static

◆ DeleteSoundClientWithId()

static void TaleWorlds.Engine.SoundManager.DeleteSoundClientWithId ( ulong  clientId)
static

◆ SetGlobalParameter()

static void TaleWorlds.Engine.SoundManager.SetGlobalParameter ( string  parameterName,
float  value 
)
static

◆ GetEventGlobalIndex()

static int TaleWorlds.Engine.SoundManager.GetEventGlobalIndex ( string  eventFullName)
static

◆ InitializeVoicePlayEvent()

static void TaleWorlds.Engine.SoundManager.InitializeVoicePlayEvent ( )
static

◆ CreateVoiceEvent()

static void TaleWorlds.Engine.SoundManager.CreateVoiceEvent ( )
static

◆ DestroyVoiceEvent()

static void TaleWorlds.Engine.SoundManager.DestroyVoiceEvent ( int  id)
static

◆ FinalizeVoicePlayEvent()

static void TaleWorlds.Engine.SoundManager.FinalizeVoicePlayEvent ( )
static

◆ StartVoiceRecording()

static void TaleWorlds.Engine.SoundManager.StartVoiceRecording ( )
static

◆ StopVoiceRecording()

static void TaleWorlds.Engine.SoundManager.StopVoiceRecording ( )
static

◆ GetVoiceData()

static void TaleWorlds.Engine.SoundManager.GetVoiceData ( byte[]  voiceBuffer,
int  chunkSize,
out int  readBytesLength 
)
static

◆ UpdateVoiceToPlay()

static void TaleWorlds.Engine.SoundManager.UpdateVoiceToPlay ( byte[]  voiceBuffer,
int  length,
int  index 
)
static

◆ AddXBOXRemoteUser()

static void TaleWorlds.Engine.SoundManager.AddXBOXRemoteUser ( System::UInt64  XUID,
System::UInt64  deviceID,
bool  canSendMicSound,
bool  canSendTextSound,
bool  canSendText,
bool  canReceiveSound,
bool  canReceiveText 
)
static

◆ InitializeXBOXSoundManager()

static void TaleWorlds.Engine.SoundManager.InitializeXBOXSoundManager ( )
static

◆ ApplyPushToTalk()

static void TaleWorlds.Engine.SoundManager.ApplyPushToTalk ( bool  pushed)
static

◆ ClearXBOXSoundManager()

static void TaleWorlds.Engine.SoundManager.ClearXBOXSoundManager ( )
static

◆ UpdateXBOXLocalUser()

static void TaleWorlds.Engine.SoundManager.UpdateXBOXLocalUser ( )
static

◆ UpdateXBOXChatCommunicationFlags()

static void TaleWorlds.Engine.SoundManager.UpdateXBOXChatCommunicationFlags ( System::UInt64  XUID,
bool  canSendMicSound,
bool  canSendTextSound,
bool  canSendText,
bool  canReceiveSound,
bool  canReceiveText 
)
static

◆ RemoveXBOXRemoteUser()

static void TaleWorlds.Engine.SoundManager.RemoveXBOXRemoteUser ( System::UInt64  XUID)
static

◆ ProcessDataToBeReceived()

static void TaleWorlds.Engine.SoundManager.ProcessDataToBeReceived ( System::UInt64  senderDeviceID,
byte[]  data,
System::UInt32  dataSize 
)
static

◆ ProcessDataToBeSent()

static void TaleWorlds.Engine.SoundManager.ProcessDataToBeSent ( ref int  numData)
static

◆ HandleStateChanges()

static void TaleWorlds.Engine.SoundManager.HandleStateChanges ( )
static

◆ GetSizeOfDataToBeSentAt()

static void TaleWorlds.Engine.SoundManager.GetSizeOfDataToBeSentAt ( int  index,
ref System::UInt32  byteCount,
ref System::UInt32  numReceivers 
)
static

◆ GetDataToBeSentAt()

static bool TaleWorlds.Engine.SoundManager.GetDataToBeSentAt ( int  index,
byte[]  buffer,
System::UInt64[]  receivers,
ref bool  transportGuaranteed 
)
static

◆ ClearDataToBeSent()

static void TaleWorlds.Engine.SoundManager.ClearDataToBeSent ( )
static

◆ CompressData()

static void TaleWorlds.Engine.SoundManager.CompressData ( int  clientID,
byte[]  buffer,
int  length,
byte[]  compressedBuffer,
out int  compressedBufferLength 
)
static

◆ DecompressData()

static void TaleWorlds.Engine.SoundManager.DecompressData ( int  clientID,
byte[]  compressedBuffer,
int  compressedBufferLength,
byte[]  decompressedBuffer,
out int  decompressedBufferLength 
)
static