2020-08-17 18:49:37 -07:00
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
2021-02-25 16:11:56 -08:00
|
|
|
namespace Ryujinx.Audio.Common
|
2020-08-17 18:49:37 -07:00
|
|
|
{
|
|
|
|
/// <summary>
|
2021-02-25 16:11:56 -08:00
|
|
|
/// Audio user input configuration.
|
2020-08-17 18:49:37 -07:00
|
|
|
/// </summary>
|
|
|
|
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
2021-02-25 16:11:56 -08:00
|
|
|
public struct AudioInputConfiguration
|
2020-08-17 18:49:37 -07:00
|
|
|
{
|
|
|
|
/// <summary>
|
2021-02-25 16:11:56 -08:00
|
|
|
/// The target sample rate of the user.
|
2020-08-17 18:49:37 -07:00
|
|
|
/// </summary>
|
2021-02-25 16:11:56 -08:00
|
|
|
/// <remarks>Only 48000Hz is considered valid, other sample rates will be refused.</remarks>
|
|
|
|
public uint SampleRate;
|
2020-08-17 18:49:37 -07:00
|
|
|
|
|
|
|
/// <summary>
|
2021-02-25 16:11:56 -08:00
|
|
|
/// The target channel count of the user.
|
2020-08-17 18:49:37 -07:00
|
|
|
/// </summary>
|
2021-02-25 16:11:56 -08: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 18:49:37 -07:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Reserved/unused.
|
|
|
|
/// </summary>
|
2021-02-25 16:11:56 -08:00
|
|
|
private ushort _reserved;
|
2020-08-17 18:49:37 -07:00
|
|
|
}
|
2022-07-25 11:46:33 -07:00
|
|
|
}
|