/ src / Ryujinx.Audio / Renderer / Common / UpdateDataHeader.cs
UpdateDataHeader.cs
 1  using Ryujinx.Common.Memory;
 2  using System.Runtime.CompilerServices;
 3  
 4  namespace Ryujinx.Audio.Renderer.Common
 5  {
 6      /// <summary>
 7      /// Update data header used for input and output of <see cref="Server.AudioRenderSystem.Update(System.Memory{byte}, System.Memory{byte}, System.Buffers.ReadOnlySequence{byte})"/>.
 8      /// </summary>
 9      public struct UpdateDataHeader
10      {
11          public int Revision;
12          public uint BehaviourSize;
13          public uint MemoryPoolsSize;
14          public uint VoicesSize;
15          public uint VoiceResourcesSize;
16          public uint EffectsSize;
17          public uint MixesSize;
18          public uint SinksSize;
19          public uint PerformanceBufferSize;
20          public uint Unknown24;
21          public uint RenderInfoSize;
22  
23  #pragma warning disable IDE0051, CS0169 // Remove unused field
24          private Array4<int> _reserved;
25  #pragma warning restore IDE0051, CS0169
26  
27          public uint TotalSize;
28  
29          public void Initialize(int revision)
30          {
31              Revision = revision;
32  
33              TotalSize = (uint)Unsafe.SizeOf<UpdateDataHeader>();
34          }
35      }
36  }