From cee712105850ac3385cd0091a923438167433f9f Mon Sep 17 00:00:00 2001
From: TSR Berry <20988865+TSRBerry@users.noreply.github.com>
Date: Sat, 8 Apr 2023 01:22:00 +0200
Subject: Move solution and projects to src
---
.../Renderer/Server/Voice/VoiceChannelResource.cs | 40 ++++++++++++++++++++++
1 file changed, 40 insertions(+)
create mode 100644 src/Ryujinx.Audio/Renderer/Server/Voice/VoiceChannelResource.cs
(limited to 'src/Ryujinx.Audio/Renderer/Server/Voice/VoiceChannelResource.cs')
diff --git a/src/Ryujinx.Audio/Renderer/Server/Voice/VoiceChannelResource.cs b/src/Ryujinx.Audio/Renderer/Server/Voice/VoiceChannelResource.cs
new file mode 100644
index 00000000..939d9294
--- /dev/null
+++ b/src/Ryujinx.Audio/Renderer/Server/Voice/VoiceChannelResource.cs
@@ -0,0 +1,40 @@
+using Ryujinx.Common.Memory;
+using System.Runtime.InteropServices;
+
+namespace Ryujinx.Audio.Renderer.Server.Voice
+{
+ ///
+ /// Server state for a voice channel resource.
+ ///
+ [StructLayout(LayoutKind.Sequential, Size = 0xD0, Pack = Alignment)]
+ public struct VoiceChannelResource
+ {
+ public const int Alignment = 0x10;
+
+ ///
+ /// Mix volumes for the resource.
+ ///
+ public Array24 Mix;
+
+ ///
+ /// Previous mix volumes for resource.
+ ///
+ public Array24 PreviousMix;
+
+ ///
+ /// The id of the resource.
+ ///
+ public uint Id;
+
+ ///
+ /// Indicate if the resource is used.
+ ///
+ [MarshalAs(UnmanagedType.I1)]
+ public bool IsUsed;
+
+ public void UpdateState()
+ {
+ Mix.AsSpan().CopyTo(PreviousMix.AsSpan());
+ }
+ }
+}
\ No newline at end of file
--
cgit v1.2.3