From 8a4235bf2115f2e2348c0ff0ea5297fb1c71b5cd Mon Sep 17 00:00:00 2001 From: jduncanator Date: Mon, 11 Feb 2019 15:36:31 +1100 Subject: [PATCH] Audio: Reformat MarshalExtensions --- .../Native/libsoundio/MarshalExtensions.cs | 52 +++++++++---------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/Ryujinx.Audio/Native/libsoundio/MarshalExtensions.cs b/Ryujinx.Audio/Native/libsoundio/MarshalExtensions.cs index ba222e6cf8..dfa699c82a 100644 --- a/Ryujinx.Audio/Native/libsoundio/MarshalExtensions.cs +++ b/Ryujinx.Audio/Native/libsoundio/MarshalExtensions.cs @@ -3,36 +3,36 @@ using System.Runtime.InteropServices; namespace SoundIOSharp { - public static class MarshalEx - { - public static double ReadDouble (IntPtr handle, int offset = 0) - { - return BitConverter.Int64BitsToDouble (Marshal.ReadInt64 (handle, offset)); - } + public static class MarshalEx + { + public static double ReadDouble(IntPtr handle, int offset = 0) + { + return BitConverter.Int64BitsToDouble(Marshal.ReadInt64(handle, offset)); + } - public static void WriteDouble (IntPtr handle, double value) - { - WriteDouble (handle, 0, value); - } + public static void WriteDouble(IntPtr handle, double value) + { + WriteDouble(handle, 0, value); + } - public static void WriteDouble (IntPtr handle, int offset, double value) - { - Marshal.WriteInt64 (handle, offset, BitConverter.DoubleToInt64Bits (value)); - } + public static void WriteDouble(IntPtr handle, int offset, double value) + { + Marshal.WriteInt64(handle, offset, BitConverter.DoubleToInt64Bits(value)); + } - public static float ReadFloat (IntPtr handle, int offset = 0) - { - return BitConverter.Int32BitsToSingle (Marshal.ReadInt32 (handle, offset)); - } + public static float ReadFloat(IntPtr handle, int offset = 0) + { + return BitConverter.Int32BitsToSingle(Marshal.ReadInt32(handle, offset)); + } - public static void WriteFloat (IntPtr handle, float value) - { + public static void WriteFloat(IntPtr handle, float value) + { WriteFloat(handle, 0, value); - } + } - public static void WriteFloat (IntPtr handle, int offset, float value) - { - Marshal.WriteInt32 (handle, offset, BitConverter.SingleToInt32Bits (value)); - } - } + public static void WriteFloat(IntPtr handle, int offset, float value) + { + Marshal.WriteInt32(handle, offset, BitConverter.SingleToInt32Bits(value)); + } + } }