aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Audio/Common/AudioOutputConfiguration.cs
blob: e17e17576f27a4abd80fc96432cc99b5647f24b6 (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;
    }
}