mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-11-25 08:40:24 +01:00
4c2ab880ef
* Ryujinx.Audio: Remove BOM from files * misc: Relicense Ryujinx.Audio under the terms of the MIT license With the approvals of all the Ryujinx.Audio contributors, this commit changes Ryujinx.Audio license from LGPLv3 to MIT.
34 lines
965 B
C#
34 lines
965 B
C#
using System.Runtime.CompilerServices;
|
|
|
|
namespace Ryujinx.Audio.Renderer.Common
|
|
{
|
|
/// <summary>
|
|
/// Update data header used for input and output of <see cref="Server.AudioRenderSystem.Update(System.Memory{byte}, System.Memory{byte}, System.ReadOnlyMemory{byte})"/>.
|
|
/// </summary>
|
|
public struct UpdateDataHeader
|
|
{
|
|
public int Revision;
|
|
public uint BehaviourSize;
|
|
public uint MemoryPoolsSize;
|
|
public uint VoicesSize;
|
|
public uint VoiceResourcesSize;
|
|
public uint EffectsSize;
|
|
public uint MixesSize;
|
|
public uint SinksSize;
|
|
public uint PerformanceBufferSize;
|
|
public uint Unknown24;
|
|
public uint RenderInfoSize;
|
|
|
|
private unsafe fixed int _reserved[4];
|
|
|
|
public uint TotalSize;
|
|
|
|
public void Initialize(int revision)
|
|
{
|
|
Revision = revision;
|
|
|
|
TotalSize = (uint)Unsafe.SizeOf<UpdateDataHeader>();
|
|
}
|
|
}
|
|
}
|