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