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.
109 lines
3.1 KiB
109 lines
3.1 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 used to call <see cref="RTCAudioInterface.SetAudioInputSettings" />.
|
|
/// </summary>
|
|
public struct SetAudioInputSettingsOptions
|
|
{
|
|
/// <summary>
|
|
/// The Product User ID of the user trying to request this operation.
|
|
/// </summary>
|
|
public ProductUserId LocalUserId { get; set; }
|
|
|
|
/// <summary>
|
|
/// The device Id to be used for this user. Pass <see langword="null" /> or empty string to use default input device.
|
|
///
|
|
/// If the device ID is invalid, the default device will be used instead.
|
|
/// Despite this fact, that device ID will be stored and the library will try to move on it when an audio device pool is being changed.
|
|
///
|
|
/// The actual hardware audio device usage depends on the current payload and optimized not to use it
|
|
/// when generated audio frames cannot be processed by someone else based on a scope of rules (For instance, when a client is alone in a room).
|
|
/// <seealso cref="RTCAudioInterface.AddNotifyAudioDevicesChanged" />
|
|
/// </summary>
|
|
public Utf8String DeviceId { get; set; }
|
|
|
|
/// <summary>
|
|
/// The volume to be used for all rooms of this user (range 0.0 to 100.0).
|
|
///
|
|
/// At the moment, the only value that produce any effect is 0.0 (silence). Any other value is ignored and causes no change to the volume.
|
|
/// </summary>
|
|
public float Volume { get; set; }
|
|
|
|
/// <summary>
|
|
/// Enable or disable Platform AEC (Acoustic Echo Cancellation) if available.
|
|
/// </summary>
|
|
public bool PlatformAEC { get; set; }
|
|
}
|
|
|
|
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
|
|
internal struct SetAudioInputSettingsOptionsInternal : ISettable<SetAudioInputSettingsOptions>, System.IDisposable
|
|
{
|
|
private int m_ApiVersion;
|
|
private System.IntPtr m_LocalUserId;
|
|
private System.IntPtr m_DeviceId;
|
|
private float m_Volume;
|
|
private int m_PlatformAEC;
|
|
|
|
public ProductUserId LocalUserId
|
|
{
|
|
set
|
|
{
|
|
Helper.Set(value, ref m_LocalUserId);
|
|
}
|
|
}
|
|
|
|
public Utf8String DeviceId
|
|
{
|
|
set
|
|
{
|
|
Helper.Set(value, ref m_DeviceId);
|
|
}
|
|
}
|
|
|
|
public float Volume
|
|
{
|
|
set
|
|
{
|
|
m_Volume = value;
|
|
}
|
|
}
|
|
|
|
public bool PlatformAEC
|
|
{
|
|
set
|
|
{
|
|
Helper.Set(value, ref m_PlatformAEC);
|
|
}
|
|
}
|
|
|
|
public void Set(ref SetAudioInputSettingsOptions other)
|
|
{
|
|
m_ApiVersion = RTCAudioInterface.SetaudioinputsettingsApiLatest;
|
|
LocalUserId = other.LocalUserId;
|
|
DeviceId = other.DeviceId;
|
|
Volume = other.Volume;
|
|
PlatformAEC = other.PlatformAEC;
|
|
}
|
|
|
|
public void Set(ref SetAudioInputSettingsOptions? other)
|
|
{
|
|
if (other.HasValue)
|
|
{
|
|
m_ApiVersion = RTCAudioInterface.SetaudioinputsettingsApiLatest;
|
|
LocalUserId = other.Value.LocalUserId;
|
|
DeviceId = other.Value.DeviceId;
|
|
Volume = other.Value.Volume;
|
|
PlatformAEC = other.Value.PlatformAEC;
|
|
}
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
Helper.Dispose(ref m_LocalUserId);
|
|
Helper.Dispose(ref m_DeviceId);
|
|
}
|
|
}
|
|
}
|