// Copyright Epic Games, Inc. All Rights Reserved.
// This file is automatically generated. Changes to this file may be overwritten.
namespace Epic.OnlineServices.RTCAudio
{
///
/// This struct is passed in with a call to
///
public struct UpdateParticipantVolumeOptions
{
///
/// The Product User ID of the user trying to request this operation.
///
public ProductUserId LocalUserId { get; set; }
///
/// The room this settings should be applied on.
///
public Utf8String RoomName { get; set; }
///
/// The participant to modify or null to update the global configuration
///
public ProductUserId ParticipantId { get; set; }
///
/// The volume to be set for received audio (range 0.0 to 100.0). Volume 50 means that the audio volume is not modified
///
public float Volume { get; set; }
}
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
internal struct UpdateParticipantVolumeOptionsInternal : ISettable, System.IDisposable
{
private int m_ApiVersion;
private System.IntPtr m_LocalUserId;
private System.IntPtr m_RoomName;
private System.IntPtr m_ParticipantId;
private float m_Volume;
public ProductUserId LocalUserId
{
set
{
Helper.Set(value, ref m_LocalUserId);
}
}
public Utf8String RoomName
{
set
{
Helper.Set(value, ref m_RoomName);
}
}
public ProductUserId ParticipantId
{
set
{
Helper.Set(value, ref m_ParticipantId);
}
}
public float Volume
{
set
{
m_Volume = value;
}
}
public void Set(ref UpdateParticipantVolumeOptions other)
{
m_ApiVersion = RTCAudioInterface.UpdateparticipantvolumeApiLatest;
LocalUserId = other.LocalUserId;
RoomName = other.RoomName;
ParticipantId = other.ParticipantId;
Volume = other.Volume;
}
public void Set(ref UpdateParticipantVolumeOptions? other)
{
if (other.HasValue)
{
m_ApiVersion = RTCAudioInterface.UpdateparticipantvolumeApiLatest;
LocalUserId = other.Value.LocalUserId;
RoomName = other.Value.RoomName;
ParticipantId = other.Value.ParticipantId;
Volume = other.Value.Volume;
}
}
public void Dispose()
{
Helper.Dispose(ref m_LocalUserId);
Helper.Dispose(ref m_RoomName);
Helper.Dispose(ref m_ParticipantId);
}
}
}