Table of Contents

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

clientId ulong

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

XUID ulong
deviceID ulong
canSendMicSound bool
canSendTextSound bool
canSendText bool
canReceiveSound bool
canReceiveText bool

ApplyPushToTalk(bool)

public static void ApplyPushToTalk(bool pushed)

Parameters

pushed bool

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

clientID int
buffer byte[]
length int
compressedBuffer byte[]
compressedBufferLength int

CreateEvent(string, Scene)

public static SoundEvent CreateEvent(string eventFullName, Scene scene)

Parameters

eventFullName string
scene Scene

Returns

SoundEvent

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

clientID int
compressedBuffer byte[]
compressedBufferLength int
decompressedBuffer byte[]
decompressedBufferLength int

DeleteSoundClientWithId(ulong)

public static void DeleteSoundClientWithId(ulong clientId)

Parameters

clientId ulong

DestroyVoiceEvent(int)

public static void DestroyVoiceEvent(int id)

Parameters

id int

FinalizeVoicePlayEvent()

public static void FinalizeVoicePlayEvent()

GetAttenuationPosition()

public static Vec3 GetAttenuationPosition()

Returns

Vec3

GetDataToBeSentAt(int, byte[], ulong[], ref bool)

public static bool GetDataToBeSentAt(int index, byte[] buffer, ulong[] receivers, ref bool transportGuaranteed)

Parameters

index int
buffer byte[]
receivers ulong[]
transportGuaranteed bool

Returns

bool

GetEventGlobalIndex(string)

public static int GetEventGlobalIndex(string eventFullName)

Parameters

eventFullName string

Returns

int

GetListenerFrame()

public static MatrixFrame GetListenerFrame()

Returns

MatrixFrame

GetSizeOfDataToBeSentAt(int, ref uint, ref uint)

public static void GetSizeOfDataToBeSentAt(int index, ref uint byteCount, ref uint numReceivers)

Parameters

index int
byteCount uint
numReceivers uint

GetVoiceData(byte[], int, out int)

public static void GetVoiceData(byte[] voiceBuffer, int chunkSize, out int readBytesLength)

Parameters

voiceBuffer byte[]
chunkSize int
readBytesLength int

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

soundBank string
decompressSamples bool

ProcessDataToBeReceived(ulong, byte[], uint)

public static void ProcessDataToBeReceived(ulong senderDeviceID, byte[] data, uint dataSize)

Parameters

senderDeviceID ulong
data byte[]
dataSize uint

ProcessDataToBeSent(ref int)

public static void ProcessDataToBeSent(ref int numData)

Parameters

numData int

RemoveXBOXRemoteUser(ulong)

public static void RemoveXBOXRemoteUser(ulong XUID)

Parameters

XUID ulong

Reset()

public static void Reset()

SetGlobalParameter(string, float)

public static void SetGlobalParameter(string parameterName, float value)

Parameters

parameterName string
value float

SetListenerFrame(MatrixFrame)

public static void SetListenerFrame(MatrixFrame frame)

Parameters

frame MatrixFrame

SetListenerFrame(MatrixFrame, Vec3)

public static void SetListenerFrame(MatrixFrame frame, Vec3 attenuationPosition)

Parameters

frame MatrixFrame
attenuationPosition Vec3

SetState(string, string)

public static void SetState(string stateGroup, string state)

Parameters

stateGroup string
state string

StartOneShotEvent(string, in Vec3)

public static bool StartOneShotEvent(string eventFullName, in Vec3 position)

Parameters

eventFullName string
position Vec3

Returns

bool

StartOneShotEvent(string, in Vec3, string, float)

public static bool StartOneShotEvent(string eventFullName, in Vec3 position, string paramName, float paramValue)

Parameters

eventFullName string
position Vec3
paramName string
paramValue float

Returns

bool

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

voiceBuffer byte[]
length int
index int

UpdateXBOXChatCommunicationFlags(ulong, bool, bool, bool, bool, bool)

public static void UpdateXBOXChatCommunicationFlags(ulong XUID, bool canSendMicSound, bool canSendTextSound, bool canSendText, bool canReceiveSound, bool canReceiveText)

Parameters

XUID ulong
canSendMicSound bool
canSendTextSound bool
canSendText bool
canReceiveSound bool
canReceiveText bool

UpdateXBOXLocalUser()

public static void UpdateXBOXLocalUser()

This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).