2021-02-26 01:11:56 +01:00
|
|
|
|
//
|
2021-01-01 00:10:44 +01:00
|
|
|
|
// Copyright (c) 2019-2021 Ryujinx
|
2020-08-18 03:49:37 +02:00
|
|
|
|
//
|
|
|
|
|
// This program is free software: you can redistribute it and/or modify
|
|
|
|
|
// it under the terms of the GNU Lesser General Public License as published by
|
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
// (at your option) any later version.
|
|
|
|
|
//
|
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
// GNU Lesser General Public License for more details.
|
|
|
|
|
//
|
|
|
|
|
// You should have received a copy of the GNU Lesser General Public License
|
|
|
|
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
}
|