2020-08-17 21:49:37 -04:00
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
2021-02-25 19:11:56 -05:00
|
|
|
namespace Ryujinx.Audio.Common
|
2020-08-17 21:49:37 -04:00
|
|
|
{
|
|
|
|
/// <summary>
|
2021-02-25 19:11:56 -05:00
|
|
|
/// Audio user input configuration.
|
2020-08-17 21:49:37 -04:00
|
|
|
/// </summary>
|
|
|
|
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
2021-02-25 19:11:56 -05:00
|
|
|
public struct AudioInputConfiguration
|
2020-08-17 21:49:37 -04:00
|
|
|
{
|
|
|
|
/// <summary>
|
2021-02-25 19:11:56 -05:00
|
|
|
/// The target sample rate of the user.
|
2020-08-17 21:49:37 -04:00
|
|
|
/// </summary>
|
2021-02-25 19:11:56 -05:00
|
|
|
/// <remarks>Only 48000Hz is considered valid, other sample rates will be refused.</remarks>
|
|
|
|
public uint SampleRate;
|
2020-08-17 21:49:37 -04:00
|
|
|
|
|
|
|
/// <summary>
|
2021-02-25 19:11:56 -05:00
|
|
|
/// The target channel count of the user.
|
2020-08-17 21:49:37 -04:00
|
|
|
/// </summary>
|
2021-02-25 19:11:56 -05:00
|
|
|
/// <remarks>Only Stereo and Surround are considered valid, other configurations will be refused.</remarks>
|
|
|
|
/// <remarks>Not used in audin.</remarks>
|
|
|
|
public ushort ChannelCount;
|
2020-08-17 21:49:37 -04:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Reserved/unused.
|
|
|
|
/// </summary>
|
2021-02-25 19:11:56 -05:00
|
|
|
private ushort _reserved;
|
2020-08-17 21:49:37 -04:00
|
|
|
}
|
|
|
|
}
|