You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

104 lines
2.6 KiB

// Copyright Epic Games, Inc. All Rights Reserved.
// This file is automatically generated. Changes to this file may be overwritten.
namespace Epic.OnlineServices.RTC
{
/// <summary>
/// This struct is used to call <see cref="RTCInterface.SetRoomSetting" />
///
/// Available values of SettingName:
/// - DisableEchoCancelation: Disables the use of echo cancellation for the audio channel. Default "False".
/// - DisableNoiseSupression: Disables the use of noise suppression for the audio channel. Default "False".
/// - DisableAutoGainControl: Disables the use of auto gain control for the audio channel. Default "False".
/// - DisableDtx: Allows to disable the use of DTX. Default "False".
/// </summary>
public class SetRoomSettingOptions
{
/// <summary>
/// The Product User ID of the user trying to request this operation.
/// </summary>
public ProductUserId LocalUserId { get; set; }
/// <summary>
/// The room the setting will be applied to.
/// </summary>
public string RoomName { get; set; }
/// <summary>
/// Setting that should be set.
/// </summary>
public string SettingName { get; set; }
/// <summary>
/// Value to set the setting to.
/// </summary>
public string SettingValue { get; set; }
}
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
internal struct SetRoomSettingOptionsInternal : ISettable, System.IDisposable
{
private int m_ApiVersion;
private System.IntPtr m_LocalUserId;
private System.IntPtr m_RoomName;
private System.IntPtr m_SettingName;
private System.IntPtr m_SettingValue;
public ProductUserId LocalUserId
{
set
{
Helper.TryMarshalSet(ref m_LocalUserId, value);
}
}
public string RoomName
{
set
{
Helper.TryMarshalSet(ref m_RoomName, value);
}
}
public string SettingName
{
set
{
Helper.TryMarshalSet(ref m_SettingName, value);
}
}
public string SettingValue
{
set
{
Helper.TryMarshalSet(ref m_SettingValue, value);
}
}
public void Set(SetRoomSettingOptions other)
{
if (other != null)
{
m_ApiVersion = RTCInterface.SetroomsettingApiLatest;
LocalUserId = other.LocalUserId;
RoomName = other.RoomName;
SettingName = other.SettingName;
SettingValue = other.SettingValue;
}
}
public void Set(object other)
{
Set(other as SetRoomSettingOptions);
}
public void Dispose()
{
Helper.TryMarshalDispose(ref m_LocalUserId);
Helper.TryMarshalDispose(ref m_RoomName);
Helper.TryMarshalDispose(ref m_SettingName);
Helper.TryMarshalDispose(ref m_SettingValue);
}
}
}