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.
144 lines
4.0 KiB
144 lines
4.0 KiB
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
// This file is automatically generated. Changes to this file may be overwritten.
|
|
|
|
namespace Epic.OnlineServices.Lobby
|
|
{
|
|
/// <summary>
|
|
/// Input parameters to use with Lobby RTC Rooms.
|
|
/// </summary>
|
|
public struct LocalRTCOptions
|
|
{
|
|
/// <summary>
|
|
/// Flags for the local user in this room. The default is 0 if this struct is not specified. @see <see cref="RTC.JoinRoomOptions.Flags" />
|
|
/// </summary>
|
|
public uint Flags { get; set; }
|
|
|
|
/// <summary>
|
|
/// Set to <see langword="true" /> to enable Manual Audio Input. If manual audio input is enabled, audio recording is not started and the audio buffers
|
|
/// must be passed manually using <see cref="RTCAudio.RTCAudioInterface.SendAudio" />. The default is <see langword="false" /> if this struct is not specified.
|
|
/// </summary>
|
|
public bool UseManualAudioInput { get; set; }
|
|
|
|
/// <summary>
|
|
/// Set to <see langword="true" /> to enable Manual Audio Output. If manual audio output is enabled, audio rendering is not started and the audio buffers
|
|
/// must be received with <see cref="RTCAudio.RTCAudioInterface.AddNotifyAudioBeforeRender" /> and rendered manually. The default is <see langword="false" /> if this struct is not
|
|
/// specified.
|
|
/// </summary>
|
|
public bool UseManualAudioOutput { get; set; }
|
|
|
|
/// <summary>
|
|
/// Set to <see langword="true" /> to start the audio input device's stream as muted when first connecting to the RTC room.
|
|
///
|
|
/// It must be manually unmuted with a call to <see cref="RTCAudio.RTCAudioInterface.UpdateSending" />. If manual audio output is enabled, this value is ignored.
|
|
/// The default value is <see langword="false" /> if this struct is not specified.
|
|
/// </summary>
|
|
public bool LocalAudioDeviceInputStartsMuted { get; set; }
|
|
|
|
internal void Set(ref LocalRTCOptionsInternal other)
|
|
{
|
|
Flags = other.Flags;
|
|
UseManualAudioInput = other.UseManualAudioInput;
|
|
UseManualAudioOutput = other.UseManualAudioOutput;
|
|
LocalAudioDeviceInputStartsMuted = other.LocalAudioDeviceInputStartsMuted;
|
|
}
|
|
}
|
|
|
|
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
|
|
internal struct LocalRTCOptionsInternal : IGettable<LocalRTCOptions>, ISettable<LocalRTCOptions>, System.IDisposable
|
|
{
|
|
private int m_ApiVersion;
|
|
private uint m_Flags;
|
|
private int m_UseManualAudioInput;
|
|
private int m_UseManualAudioOutput;
|
|
private int m_LocalAudioDeviceInputStartsMuted;
|
|
|
|
public uint Flags
|
|
{
|
|
get
|
|
{
|
|
return m_Flags;
|
|
}
|
|
|
|
set
|
|
{
|
|
m_Flags = value;
|
|
}
|
|
}
|
|
|
|
public bool UseManualAudioInput
|
|
{
|
|
get
|
|
{
|
|
bool value;
|
|
Helper.Get(m_UseManualAudioInput, out value);
|
|
return value;
|
|
}
|
|
|
|
set
|
|
{
|
|
Helper.Set(value, ref m_UseManualAudioInput);
|
|
}
|
|
}
|
|
|
|
public bool UseManualAudioOutput
|
|
{
|
|
get
|
|
{
|
|
bool value;
|
|
Helper.Get(m_UseManualAudioOutput, out value);
|
|
return value;
|
|
}
|
|
|
|
set
|
|
{
|
|
Helper.Set(value, ref m_UseManualAudioOutput);
|
|
}
|
|
}
|
|
|
|
public bool LocalAudioDeviceInputStartsMuted
|
|
{
|
|
get
|
|
{
|
|
bool value;
|
|
Helper.Get(m_LocalAudioDeviceInputStartsMuted, out value);
|
|
return value;
|
|
}
|
|
|
|
set
|
|
{
|
|
Helper.Set(value, ref m_LocalAudioDeviceInputStartsMuted);
|
|
}
|
|
}
|
|
|
|
public void Set(ref LocalRTCOptions other)
|
|
{
|
|
m_ApiVersion = LobbyInterface.LocalrtcoptionsApiLatest;
|
|
Flags = other.Flags;
|
|
UseManualAudioInput = other.UseManualAudioInput;
|
|
UseManualAudioOutput = other.UseManualAudioOutput;
|
|
LocalAudioDeviceInputStartsMuted = other.LocalAudioDeviceInputStartsMuted;
|
|
}
|
|
|
|
public void Set(ref LocalRTCOptions? other)
|
|
{
|
|
if (other.HasValue)
|
|
{
|
|
m_ApiVersion = LobbyInterface.LocalrtcoptionsApiLatest;
|
|
Flags = other.Value.Flags;
|
|
UseManualAudioInput = other.Value.UseManualAudioInput;
|
|
UseManualAudioOutput = other.Value.UseManualAudioOutput;
|
|
LocalAudioDeviceInputStartsMuted = other.Value.LocalAudioDeviceInputStartsMuted;
|
|
}
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
}
|
|
|
|
public void Get(out LocalRTCOptions output)
|
|
{
|
|
output = new LocalRTCOptions();
|
|
output.Set(ref this);
|
|
}
|
|
}
|
|
}
|