2020-08-17 21:49:37 -04:00
|
|
|
namespace Ryujinx.Audio.Renderer.Device
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a virtual device session used by IAudioDevice.
|
|
|
|
/// </summary>
|
|
|
|
public class VirtualDeviceSession
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// The <see cref="VirtualDevice"/> associated to this session.
|
|
|
|
/// </summary>
|
|
|
|
public VirtualDevice Device { get; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The user volume of this session.
|
|
|
|
/// </summary>
|
|
|
|
public float Volume { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Create a new <see cref="VirtualDeviceSession"/> instance.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="virtualDevice">The <see cref="VirtualDevice"/> associated to this session.</param>
|
|
|
|
public VirtualDeviceSession(VirtualDevice virtualDevice)
|
|
|
|
{
|
|
|
|
Device = virtualDevice;
|
|
|
|
}
|
|
|
|
}
|
2022-07-25 14:46:33 -04:00
|
|
|
}
|