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.

79 lines
1.8 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.AddNotifyAudioDevicesChanged" /> registered event.
/// </summary>
public struct AudioDevicesChangedCallbackInfo : ICallbackInfo
{
/// <summary>
/// Client-specified data passed into <see cref="RTCAudioInterface.AddNotifyAudioDevicesChanged" />.
/// </summary>
public object ClientData { get; set; }
public Result? GetResultCode()
{
return null;
}
internal void Set(ref AudioDevicesChangedCallbackInfoInternal other)
{
ClientData = other.ClientData;
}
}
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
internal struct AudioDevicesChangedCallbackInfoInternal : ICallbackInfoInternal, IGettable<AudioDevicesChangedCallbackInfo>, ISettable<AudioDevicesChangedCallbackInfo>, System.IDisposable
{
private System.IntPtr m_ClientData;
public object ClientData
{
get
{
object value;
Helper.Get(m_ClientData, out value);
return value;
}
set
{
Helper.Set(value, ref m_ClientData);
}
}
public System.IntPtr ClientDataAddress
{
get
{
return m_ClientData;
}
}
public void Set(ref AudioDevicesChangedCallbackInfo other)
{
ClientData = other.ClientData;
}
public void Set(ref AudioDevicesChangedCallbackInfo? other)
{
if (other.HasValue)
{
ClientData = other.Value.ClientData;
}
}
public void Dispose()
{
Helper.Dispose(ref m_ClientData);
}
public void Get(out AudioDevicesChangedCallbackInfo output)
{
output = new AudioDevicesChangedCallbackInfo();
output.Set(ref this);
}
}
}