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