diff options
| author | Ac_K <Acoustik666@gmail.com> | 2020-11-27 20:55:00 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-27 20:55:00 +0100 |
| commit | 7b66cb0d9051cab581df6853f11e87ed115da6c3 (patch) | |
| tree | 7f5903f298f54cd65d16461089722d8f20264e11 /Ryujinx.Audio/Native/libsoundio/SoundIOChannelArea.cs | |
| parent | 0108004691a582f7df8e629c1e68a6bb0e0b90e7 (diff) | |
audio: Cleanup Ryujinx.Audio and fix OpenAL issue (#1746)
* audio: Cleanup SoundIO and fix OpenAL issue
* fix tabs by spaces
* Fix extra spaces
* Fix SoundIO.cs
* Fix ContainsAudioOutBuffer
Diffstat (limited to 'Ryujinx.Audio/Native/libsoundio/SoundIOChannelArea.cs')
| -rw-r--r-- | Ryujinx.Audio/Native/libsoundio/SoundIOChannelArea.cs | 40 |
1 files changed, 22 insertions, 18 deletions
diff --git a/Ryujinx.Audio/Native/libsoundio/SoundIOChannelArea.cs b/Ryujinx.Audio/Native/libsoundio/SoundIOChannelArea.cs index f30e2bbb..c15fb744 100644 --- a/Ryujinx.Audio/Native/libsoundio/SoundIOChannelArea.cs +++ b/Ryujinx.Audio/Native/libsoundio/SoundIOChannelArea.cs @@ -3,24 +3,28 @@ using System.Runtime.InteropServices; namespace SoundIOSharp { - public struct SoundIOChannelArea - { - internal SoundIOChannelArea (Pointer<SoundIoChannelArea> handle) - { - this.handle = handle; - } + public struct SoundIOChannelArea + { + internal SoundIOChannelArea(Pointer<SoundIoChannelArea> handle) + { + this.handle = handle; + } - Pointer<SoundIoChannelArea> handle; + Pointer<SoundIoChannelArea> handle; - public IntPtr Pointer { - get { return Marshal.ReadIntPtr (handle, ptr_offset); } - set { Marshal.WriteIntPtr (handle, ptr_offset, value); } - } - static readonly int ptr_offset = (int) Marshal.OffsetOf<SoundIoChannelArea> ("ptr"); + public IntPtr Pointer + { + get { return Marshal.ReadIntPtr(handle, ptr_offset); } + set { Marshal.WriteIntPtr(handle, ptr_offset, value); } + } - public int Step { - get { return Marshal.ReadInt32 (handle, step_offset); } - } - static readonly int step_offset = (int)Marshal.OffsetOf<SoundIoChannelArea> ("step"); - } -} + static readonly int ptr_offset = (int)Marshal.OffsetOf<SoundIoChannelArea>("ptr"); + + public int Step + { + get { return Marshal.ReadInt32(handle, step_offset); } + } + + static readonly int step_offset = (int)Marshal.OffsetOf<SoundIoChannelArea>("step"); + } +}
\ No newline at end of file |
