Class SoundManager
- Namespace
- TaleWorlds.Engine
- Assembly
- TaleWorlds.Engine.dll
public static class SoundManager
- Inheritance
-
SoundManager
- Inherited Members
Methods
AddSoundClientWithId(ulong)
public static void AddSoundClientWithId(ulong clientId)
Parameters
clientIdulong
AddXBOXRemoteUser(ulong, ulong, bool, bool, bool, bool, bool)
public static void AddXBOXRemoteUser(ulong XUID, ulong deviceID, bool canSendMicSound, bool canSendTextSound, bool canSendText, bool canReceiveSound, bool canReceiveText)
Parameters
XUIDulongdeviceIDulongcanSendMicSoundboolcanSendTextSoundboolcanSendTextboolcanReceiveSoundboolcanReceiveTextbool
ApplyPushToTalk(bool)
public static void ApplyPushToTalk(bool pushed)
Parameters
pushedbool
ClearDataToBeSent()
public static void ClearDataToBeSent()
ClearXBOXSoundManager()
public static void ClearXBOXSoundManager()
CompressData(int, byte[], int, byte[], out int)
public static void CompressData(int clientID, byte[] buffer, int length, byte[] compressedBuffer, out int compressedBufferLength)
Parameters
CreateEvent(string, Scene)
public static SoundEvent CreateEvent(string eventFullName, Scene scene)
Parameters
Returns
CreateVoiceEvent()
public static void CreateVoiceEvent()
DecompressData(int, byte[], int, byte[], out int)
public static void DecompressData(int clientID, byte[] compressedBuffer, int compressedBufferLength, byte[] decompressedBuffer, out int decompressedBufferLength)
Parameters
clientIDintcompressedBufferbyte[]compressedBufferLengthintdecompressedBufferbyte[]decompressedBufferLengthint
DeleteSoundClientWithId(ulong)
public static void DeleteSoundClientWithId(ulong clientId)
Parameters
clientIdulong
DestroyVoiceEvent(int)
public static void DestroyVoiceEvent(int id)
Parameters
idint
FinalizeVoicePlayEvent()
public static void FinalizeVoicePlayEvent()
GetAttenuationPosition()
public static Vec3 GetAttenuationPosition()
Returns
GetDataToBeSentAt(int, byte[], ulong[], ref bool)
public static bool GetDataToBeSentAt(int index, byte[] buffer, ulong[] receivers, ref bool transportGuaranteed)
Parameters
Returns
GetEventGlobalIndex(string)
public static int GetEventGlobalIndex(string eventFullName)
Parameters
eventFullNamestring
Returns
GetListenerFrame()
public static MatrixFrame GetListenerFrame()
Returns
GetSizeOfDataToBeSentAt(int, ref uint, ref uint)
public static void GetSizeOfDataToBeSentAt(int index, ref uint byteCount, ref uint numReceivers)
Parameters
GetVoiceData(byte[], int, out int)
public static void GetVoiceData(byte[] voiceBuffer, int chunkSize, out int readBytesLength)
Parameters
HandleStateChanges()
public static void HandleStateChanges()
InitializeVoicePlayEvent()
public static void InitializeVoicePlayEvent()
InitializeXBOXSoundManager()
public static void InitializeXBOXSoundManager()
LoadEventFileAux(string, bool)
public static void LoadEventFileAux(string soundBank, bool decompressSamples)
Parameters
ProcessDataToBeReceived(ulong, byte[], uint)
public static void ProcessDataToBeReceived(ulong senderDeviceID, byte[] data, uint dataSize)
Parameters
ProcessDataToBeSent(ref int)
public static void ProcessDataToBeSent(ref int numData)
Parameters
numDataint
RemoveXBOXRemoteUser(ulong)
public static void RemoveXBOXRemoteUser(ulong XUID)
Parameters
XUIDulong
Reset()
public static void Reset()
SetGlobalParameter(string, float)
public static void SetGlobalParameter(string parameterName, float value)
Parameters
SetListenerFrame(MatrixFrame)
public static void SetListenerFrame(MatrixFrame frame)
Parameters
frameMatrixFrame
SetListenerFrame(MatrixFrame, Vec3)
public static void SetListenerFrame(MatrixFrame frame, Vec3 attenuationPosition)
Parameters
frameMatrixFrameattenuationPositionVec3
SetState(string, string)
public static void SetState(string stateGroup, string state)
Parameters
StartOneShotEvent(string, in Vec3)
public static bool StartOneShotEvent(string eventFullName, in Vec3 position)
Parameters
Returns
StartOneShotEvent(string, in Vec3, string, float)
public static bool StartOneShotEvent(string eventFullName, in Vec3 position, string paramName, float paramValue)
Parameters
Returns
StartVoiceRecording()
public static void StartVoiceRecording()
StopVoiceRecording()
public static void StopVoiceRecording()
UpdateVoiceToPlay(byte[], int, int)
public static void UpdateVoiceToPlay(byte[] voiceBuffer, int length, int index)
Parameters
UpdateXBOXChatCommunicationFlags(ulong, bool, bool, bool, bool, bool)
public static void UpdateXBOXChatCommunicationFlags(ulong XUID, bool canSendMicSound, bool canSendTextSound, bool canSendText, bool canReceiveSound, bool canReceiveText)
Parameters
XUIDulongcanSendMicSoundboolcanSendTextSoundboolcanSendTextboolcanReceiveSoundboolcanReceiveTextbool
UpdateXBOXLocalUser()
public static void UpdateXBOXLocalUser()
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).