aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Audio/Common/AudioOutputConfiguration.cs
blob: 594f122508edfb536616ce639db676c53f1e4164 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using Ryujinx.Common.Memory;
using System.Runtime.InteropServices;

namespace Ryujinx.Audio.Common
{
    /// <summary>
    /// Audio system output configuration.
    /// </summary>
    [StructLayout(LayoutKind.Sequential, Pack = 1)]
    public struct AudioOutputConfiguration
    {
        /// <summary>
        /// The target sample rate of the system.
        /// </summary>
        public uint SampleRate;

        /// <summary>
        /// The target channel count of the system.
        /// </summary>
        public uint ChannelCount;

        /// <summary>
        /// Reserved/unused
        /// </summary>
        public SampleFormat SampleFormat;

        /// <summary>
        /// Reserved/unused.
        /// </summary>
        private Array3<byte> _padding;

        /// <summary>
        /// The initial audio system state.
        /// </summary>
        public AudioDeviceState AudioOutState;
    }
}