AudioOutputConfiguration.cs
1 using Ryujinx.Common.Memory; 2 using System.Runtime.InteropServices; 3 4 namespace Ryujinx.Audio.Common 5 { 6 /// <summary> 7 /// Audio system output configuration. 8 /// </summary> 9 [StructLayout(LayoutKind.Sequential, Pack = 1)] 10 public struct AudioOutputConfiguration 11 { 12 /// <summary> 13 /// The target sample rate of the system. 14 /// </summary> 15 public uint SampleRate; 16 17 /// <summary> 18 /// The target channel count of the system. 19 /// </summary> 20 public uint ChannelCount; 21 22 /// <summary> 23 /// Reserved/unused 24 /// </summary> 25 public SampleFormat SampleFormat; 26 27 /// <summary> 28 /// Reserved/unused. 29 /// </summary> 30 private Array3<byte> _padding; 31 32 /// <summary> 33 /// The initial audio system state. 34 /// </summary> 35 public AudioDeviceState AudioOutState; 36 } 37 }