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.

84 lines
2.0 KiB

// Copyright Epic Games, Inc. All Rights Reserved.
// This file is automatically generated. Changes to this file may be overwritten.
namespace Epic.OnlineServices.RTCAudio
{
/// <summary>
/// This struct is passed in with a call to <see cref="RTCAudioInterface.UpdateSending" />
/// </summary>
public struct UpdateSendingOptions
{
/// <summary>
/// The Product User ID of the user trying to request this operation.
/// </summary>
public ProductUserId LocalUserId { get; set; }
/// <summary>
/// The room this settings should be applied on.
/// </summary>
public Utf8String RoomName { get; set; }
/// <summary>
/// Muted or unmuted audio track status
/// </summary>
public RTCAudioStatus AudioStatus { get; set; }
}
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
internal struct UpdateSendingOptionsInternal : ISettable<UpdateSendingOptions>, System.IDisposable
{
private int m_ApiVersion;
private System.IntPtr m_LocalUserId;
private System.IntPtr m_RoomName;
private RTCAudioStatus m_AudioStatus;
public ProductUserId LocalUserId
{
set
{
Helper.Set(value, ref m_LocalUserId);
}
}
public Utf8String RoomName
{
set
{
Helper.Set(value, ref m_RoomName);
}
}
public RTCAudioStatus AudioStatus
{
set
{
m_AudioStatus = value;
}
}
public void Set(ref UpdateSendingOptions other)
{
m_ApiVersion = RTCAudioInterface.UpdatesendingApiLatest;
LocalUserId = other.LocalUserId;
RoomName = other.RoomName;
AudioStatus = other.AudioStatus;
}
public void Set(ref UpdateSendingOptions? other)
{
if (other.HasValue)
{
m_ApiVersion = RTCAudioInterface.UpdatesendingApiLatest;
LocalUserId = other.Value.LocalUserId;
RoomName = other.Value.RoomName;
AudioStatus = other.Value.AudioStatus;
}
}
public void Dispose()
{
Helper.Dispose(ref m_LocalUserId);
Helper.Dispose(ref m_RoomName);
}
}
}